22 #ifndef BACKEND_EVENTS_ATARI_H 23 #define BACKEND_EVENTS_ATARI_H 25 #include "common/events.h" 27 #include "common/hashmap.h" 41 void setGraphicsManager(
AtariGraphicsManager *graphicsManager) { _graphicsManager = graphicsManager; }
47 bool _lmbDown =
false;
48 bool _mmbDown =
false;
49 bool _rmbDown =
false;
51 bool _lshiftActive =
false;
52 bool _rshiftActive =
false;
53 bool _ctrlActive =
false;
54 bool _altActive =
false;
55 bool _capslockActive =
false;
56 bool _scrolllockActive =
false;
57 bool _numlockActive =
false;
59 byte _unshiftToAscii[128];
60 byte _shiftToAscii[128];
61 byte _capsToAscii[128];
63 const Common::KeyCode _asciiToKeycode[128 - 32 - 1] = {
64 Common::KEYCODE_SPACE,
65 Common::KEYCODE_EXCLAIM,
66 Common::KEYCODE_QUOTEDBL,
68 Common::KEYCODE_DOLLAR,
69 Common::KEYCODE_PERCENT,
70 Common::KEYCODE_AMPERSAND,
71 Common::KEYCODE_QUOTE,
72 Common::KEYCODE_LEFTPAREN,
73 Common::KEYCODE_RIGHTPAREN,
74 Common::KEYCODE_ASTERISK,
76 Common::KEYCODE_COMMA,
77 Common::KEYCODE_MINUS,
78 Common::KEYCODE_PERIOD,
79 Common::KEYCODE_SLASH,
90 Common::KEYCODE_COLON,
91 Common::KEYCODE_SEMICOLON,
93 Common::KEYCODE_EQUALS,
94 Common::KEYCODE_GREATER,
95 Common::KEYCODE_QUESTION,
123 Common::KEYCODE_LEFTBRACKET,
124 Common::KEYCODE_BACKSLASH,
125 Common::KEYCODE_RIGHTBRACKET,
126 Common::KEYCODE_CARET,
127 Common::KEYCODE_UNDERSCORE,
128 Common::KEYCODE_BACKQUOTE,
155 Common::KEYCODE_INVALID,
156 Common::KEYCODE_INVALID,
157 Common::KEYCODE_INVALID,
158 Common::KEYCODE_TILDE
bool pollEvent(Common::Event &event) override
Definition: osystem_atari.h:27
Definition: atari-events.h:35
Definition: atari-graphics.h:40