mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-27 15:29:34 +00:00
Increase key bindings.
This commit is contained in:
parent
6b90de539e
commit
863b09c39b
@ -43,12 +43,16 @@ uint16_t KeyboardMapper::mapped_key_for_key(Inputs::Keyboard::Key key) const {
|
||||
BIND(Semicolon, Semicolon); BIND(Quote, Colon);
|
||||
BIND(Equals, Equals); BIND(ForwardSlash, Slash);
|
||||
|
||||
BIND(OpenSquareBracket, At);
|
||||
BIND(CloseSquareBracket, Plus);
|
||||
BIND(Backslash, Clear_Home);
|
||||
|
||||
BIND(F11, Clear_Home);
|
||||
BIND(F12, Run_Stop);
|
||||
|
||||
// TODO:
|
||||
// At
|
||||
// GBP
|
||||
// Asterisk
|
||||
// Clear_Home
|
||||
// Run_Stop
|
||||
}
|
||||
#undef BIND
|
||||
return MachineTypes::MappedKeyboardMachine::KeyNotMapped;
|
||||
|
@ -63,6 +63,12 @@ enum Key: uint16_t {
|
||||
Control = key(7, 0x04), k2 = key(7, 0x08),
|
||||
Space = key(7, 0x10), Commodore = key(7, 0x20),
|
||||
Q = key(7, 0x40), Run_Stop = key(7, 0x80),
|
||||
|
||||
// Bonus virtual keys:
|
||||
F4 = 0xfe00,
|
||||
F5 = 0xfe01,
|
||||
F6 = 0xfe02,
|
||||
F7 = 0xfe03,
|
||||
};
|
||||
|
||||
struct KeyboardMapper: public MachineTypes::MappedKeyboardMachine::KeyboardMapper {
|
||||
|
Loading…
x
Reference in New Issue
Block a user