Skip to content

Commit 04acf8e

Browse files
committed
cleanup
1 parent f697c40 commit 04acf8e

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

Emulator/Components/Agnus/AgnusTypes.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,7 @@ enum_i8(EventID)
375375
RSH_EVENT_COUNT,
376376

377377
// Auto typing
378-
KEY_PRESS = 1, // DEPRECATED
379-
KEY_RELEASE, // DEPRECATED
380-
KEY_AUTO_TYPE,
378+
KEY_AUTO_TYPE = 1,
381379
KEY_EVENT_COUNT,
382380

383381
// Remote server manager

Emulator/Components/Amiga.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,6 @@ Amiga::update(CmdQueue &queue)
762762
cpu.processCommand(cmd);
763763
break;
764764

765-
case CMD_KEY_PRESS:
766-
case CMD_KEY_RELEASE:
767765
case CMD_KEY_RELEASE_ALL:
768766
case CMD_KEY_TOGGLE:
769767

Emulator/Peripherals/Keyboard/Keyboard.h

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,28 +149,18 @@ class Keyboard final : public SubComponent {
149149
void toggle(KeyCode keycode);
150150
void releaseAll();
151151

152-
// DEPRECATED
153-
// void autoType(KeyCode keycode, Cycle duration = MSEC(100), Cycle delay = 0);
152+
// Auto-types a string
153+
void autoType(const string &text);
154+
155+
// Discards all pending key events
156+
void abortAutoTyping();
154157

155158
private:
156159

157160
// Wake up the keyboard if it has gone idle
158161
void wakeUp();
159162

160163

161-
//
162-
// Auto typing
163-
//
164-
165-
public:
166-
167-
// Auto-types a string
168-
void autoType(const string &text);
169-
170-
// Discards all pending key events
171-
void abortAutoTyping();
172-
173-
174164
//
175165
// Talking to the Amiga
176166
//

0 commit comments

Comments
 (0)