diff options
author | belugas <belugas@openttd.org> | 2006-09-23 02:39:24 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-09-23 02:39:24 +0000 |
commit | 1c56a5ae0fefac5636a7f93c3bed9285fca558d8 (patch) | |
tree | 94c5771fcfbd839db8eabe8b14662d04e44ab61c /console.c | |
parent | 0f78b620fbb4e4ca744ceffffc43a9c0846bca12 (diff) | |
download | openttd-1c56a5ae0fefac5636a7f93c3bed9285fca558d8.tar.xz |
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -98,8 +98,8 @@ static void IConsoleWndProc(Window *w, WindowEvent *e) _iconsole_mode = ICONSOLE_CLOSED; break; case WE_KEYPRESS: - e->keypress.cont = false; - switch (e->keypress.keycode) { + e->we.keypress.cont = false; + switch (e->we.keypress.keycode) { case WKC_UP: IConsoleHistoryNavigate(+1); SetWindowDirty(w); @@ -169,25 +169,25 @@ static void IConsoleWndProc(Window *w, WindowEvent *e) SetWindowDirty(w); break; case WKC_BACKSPACE: case WKC_DELETE: - if (DeleteTextBufferChar(&_iconsole_cmdline, e->keypress.keycode)) { + if (DeleteTextBufferChar(&_iconsole_cmdline, e->we.keypress.keycode)) { IConsoleResetHistoryPos(); SetWindowDirty(w); } break; case WKC_LEFT: case WKC_RIGHT: case WKC_END: case WKC_HOME: - if (MoveTextBufferPos(&_iconsole_cmdline, e->keypress.keycode)) { + if (MoveTextBufferPos(&_iconsole_cmdline, e->we.keypress.keycode)) { IConsoleResetHistoryPos(); SetWindowDirty(w); } break; default: - if (IsValidAsciiChar(e->keypress.ascii, CS_ALPHANUMERAL)) { + if (IsValidAsciiChar(e->we.keypress.ascii, CS_ALPHANUMERAL)) { _iconsole_scroll = ICON_BUFFER; - InsertTextBufferChar(&_iconsole_cmdline, e->keypress.ascii); + InsertTextBufferChar(&_iconsole_cmdline, e->we.keypress.ascii); IConsoleResetHistoryPos(); SetWindowDirty(w); } else { - e->keypress.cont = true; + e->we.keypress.cont = true; } break; } |