diff options
author | Max Horn | 2004-12-05 17:42:20 +0000 |
---|---|---|
committer | Max Horn | 2004-12-05 17:42:20 +0000 |
commit | f09293b22cdec7d8b309baea0a58e93757c77913 (patch) | |
tree | 24a0814b173e6607e88d8e71163bcbc9d9d340ac /backends/x11/x11.cpp | |
parent | 8d4fcb1689a4c80fa9ef3ec84194fa791bd2c00e (diff) | |
download | scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.gz scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.bz2 scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.zip |
Clean up OSystem::Event
svn-id: r15990
Diffstat (limited to 'backends/x11/x11.cpp')
-rw-r--r-- | backends/x11/x11.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp index 2fa8398e29..cdb34dcaf3 100644 --- a/backends/x11/x11.cpp +++ b/backends/x11/x11.cpp @@ -923,7 +923,7 @@ bool OSystem_X11::pollEvent(Event &scumm_event) { } } if (keycode != -1) { - scumm_event.event_code = EVENT_KEYDOWN; + scumm_event.type = EVENT_KEYDOWN; scumm_event.kbd.keycode = keycode; scumm_event.kbd.ascii = (ascii != -1 ? ascii : keycode); scumm_event.kbd.flags = mode; @@ -965,7 +965,7 @@ bool OSystem_X11::pollEvent(Event &scumm_event) { } } if (keycode != -1) { - scumm_event.event_code = EVENT_KEYUP; + scumm_event.type = EVENT_KEYUP; scumm_event.kbd.keycode = keycode; scumm_event.kbd.ascii = (ascii != -1 ? ascii : keycode); scumm_event.kbd.flags = mode; @@ -978,12 +978,12 @@ bool OSystem_X11::pollEvent(Event &scumm_event) { if (report_presses != 0) { if (event.xbutton.button == 1) { if (fake_right_mouse == 0) { - scumm_event.event_code = EVENT_LBUTTONDOWN; + scumm_event.type = EVENT_LBUTTONDOWN; } else { - scumm_event.event_code = EVENT_RBUTTONDOWN; + scumm_event.type = EVENT_RBUTTONDOWN; } } else if (event.xbutton.button == 3) - scumm_event.event_code = EVENT_RBUTTONDOWN; + scumm_event.type = EVENT_RBUTTONDOWN; scumm_event.mouse.x = event.xbutton.x - scumm_x; scumm_event.mouse.y = event.xbutton.y - scumm_y; return true; @@ -994,12 +994,12 @@ bool OSystem_X11::pollEvent(Event &scumm_event) { if (report_presses != 0) { if (event.xbutton.button == 1) { if (fake_right_mouse == 0) { - scumm_event.event_code = EVENT_LBUTTONUP; + scumm_event.type = EVENT_LBUTTONUP; } else { - scumm_event.event_code = EVENT_RBUTTONUP; + scumm_event.type = EVENT_RBUTTONUP; } } else if (event.xbutton.button == 3) - scumm_event.event_code = EVENT_RBUTTONUP; + scumm_event.type = EVENT_RBUTTONUP; scumm_event.mouse.x = event.xbutton.x - scumm_x; scumm_event.mouse.y = event.xbutton.y - scumm_y; return true; @@ -1007,7 +1007,7 @@ bool OSystem_X11::pollEvent(Event &scumm_event) { break; case MotionNotify: - scumm_event.event_code = EVENT_MOUSEMOVE; + scumm_event.type = EVENT_MOUSEMOVE; scumm_event.mouse.x = event.xmotion.x - scumm_x; scumm_event.mouse.y = event.xmotion.y - scumm_y; set_mouse_pos(scumm_event.mouse.x, scumm_event.mouse.y); |