1
0
Fork 0

Minor formating fixes.

This commit is contained in:
Henrik Hautakoski 2019-12-29 22:26:05 +01:00
parent 6f53b0c069
commit 4df668e68f
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
76 changed files with 121 additions and 121 deletions

View file

@ -10,7 +10,7 @@ namespace sp {
static Win32MsgBuffer msg_buf;
static Vector2f _normalizePos(int x, int y, RECT area)
static Vector2f _normalizePos(int x, int y, RECT area)
{
Vector2f out;
@ -75,8 +75,8 @@ void Win32Mouse::update(InputModule *input)
m_state[MouseButton::Middle] = event.mouseButton.pressed;
input->postInputEvent(event);
} else if (msg.message == WM_XBUTTONDOWN || msg.message == WM_XBUTTONUP) {
} else if (msg.message == WM_XBUTTONDOWN || msg.message == WM_XBUTTONUP) {
int btn = GET_XBUTTON_WPARAM(msg.wParam);
InputEvent event(InputEvent::MouseButton);
@ -90,7 +90,7 @@ void Win32Mouse::update(InputModule *input)
InputEvent event(InputEvent::MousePosition);
RECT area = GetClientArea(msg.hwnd);
int x = LOWORD(msg.lParam);
int y = HIWORD(msg.lParam);
@ -116,4 +116,4 @@ bool Win32Mouse::handleMessage(MSG message)
return msg_buf.postMessage(message);
}
} // namespace sp
} // namespace sp