mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
indents
This commit is contained in:
parent
b4f8764266
commit
303e2c77b1
@ -1127,17 +1127,17 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
|
|
||||||
case WM_XBUTTONDOWN:
|
case WM_XBUTTONDOWN:
|
||||||
{
|
{
|
||||||
if (_lost_keypresses) {
|
if (_lost_keypresses) {
|
||||||
resend_lost_keypresses();
|
resend_lost_keypresses();
|
||||||
}
|
}
|
||||||
SetCapture(hwnd);
|
SetCapture(hwnd);
|
||||||
int whichButton = GET_XBUTTON_WPARAM(wparam);
|
int whichButton = GET_XBUTTON_WPARAM(wparam);
|
||||||
_input_devices[0].set_pointer_in_window(translate_mouse(LOWORD(lparam)), translate_mouse(HIWORD(lparam)));
|
_input_devices[0].set_pointer_in_window(translate_mouse(LOWORD(lparam)), translate_mouse(HIWORD(lparam)));
|
||||||
if (whichButton == XBUTTON1) {
|
if (whichButton == XBUTTON1) {
|
||||||
_input_devices[0].button_down(MouseButton::button(3), get_message_time());
|
_input_devices[0].button_down(MouseButton::button(3), get_message_time());
|
||||||
} else if (whichButton == XBUTTON2) {
|
} else if (whichButton == XBUTTON2) {
|
||||||
_input_devices[0].button_down(MouseButton::button(4), get_message_time());
|
_input_devices[0].button_down(MouseButton::button(4), get_message_time());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user