Skip to content
Snippets Groups Projects
Commit cce3902c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add some key macros for Shift+x and Control+x keys

For use by SyncTERM in Mode 7/Prestel modes.
parent 83c7914b
No related branches found
No related tags found
No related merge requests found
......@@ -742,27 +742,37 @@ CIOLIBEXPORT void mousestate_res(int *x_res, int *y_res, uint8_t *buttons);
}
#endif
#define CIO_KEY_HOME (0x47 << 8)
#define CIO_KEY_UP (0x48 << 8)
#define CIO_KEY_END (0x4f << 8)
#define CIO_KEY_DOWN (0x50 << 8)
#define CIO_KEY_F(x) ((x<11)?((0x3a+x) << 8):((0x7a+x) << 8))
#define CIO_KEY_IC (0x52 << 8)
#define CIO_KEY_DC (0x53 << 8)
#define CIO_KEY_SHIFT_IC (0x05 << 8) /* Shift-Insert */
#define CIO_KEY_SHIFT_DC (0x07 << 8) /* Shift-Delete */
#define CIO_KEY_CTRL_IC (0x04 << 8) /* Ctrl-Insert */
#define CIO_KEY_CTRL_DC (0x06 << 8) /* Ctrl-Delete */
#define CIO_KEY_ALT_IC (0xA2 << 8) /* Alt-Insert */
#define CIO_KEY_ALT_DC (0xA3 << 8) /* Alt-Delete */
#define CIO_KEY_LEFT (0x4b << 8)
#define CIO_KEY_RIGHT (0x4d << 8)
#define CIO_KEY_PPAGE (0x49 << 8)
#define CIO_KEY_NPAGE (0x51 << 8)
#define CIO_KEY_SHIFT_F(x)((x<11)?((0x53 + x) << 8):((0x7c + x) << 8))
#define CIO_KEY_CTRL_F(x) ((x<11)?((0x5d + x) << 8):((0x7e + x) << 8))
#define CIO_KEY_ALT_F(x) ((x<11)?((0x67 + x) << 8):((0x80 + x) << 8))
#define CIO_KEY_BACKTAB (0x0f << 8)
#define CIO_KEY_HOME (0x47 << 8)
#define CIO_KEY_UP (0x48 << 8)
#define CIO_KEY_END (0x4f << 8)
#define CIO_KEY_DOWN (0x50 << 8)
#define CIO_KEY_F(x) ((x<11)?((0x3a+x) << 8):((0x7a+x) << 8))
#define CIO_KEY_IC (0x52 << 8)
#define CIO_KEY_DC (0x53 << 8)
#define CIO_KEY_SHIFT_IC (0x05 << 8) /* Shift-Insert */
#define CIO_KEY_SHIFT_DC (0x07 << 8) /* Shift-Delete */
#define CIO_KEY_CTRL_IC (0x04 << 8) /* Ctrl-Insert */
#define CIO_KEY_CTRL_DC (0x06 << 8) /* Ctrl-Delete */
#define CIO_KEY_ALT_IC (0xA2 << 8) /* Alt-Insert */
#define CIO_KEY_ALT_DC (0xA3 << 8) /* Alt-Delete */
#define CIO_KEY_LEFT (0x4b << 8)
#define CIO_KEY_RIGHT (0x4d << 8)
#define CIO_KEY_PPAGE (0x49 << 8)
#define CIO_KEY_NPAGE (0x51 << 8)
#define CIO_KEY_SHIFT_F(x) ((x<11)?((0x53 + x) << 8):((0x7c + x) << 8))
#define CIO_KEY_CTRL_F(x) ((x<11)?((0x5d + x) << 8):((0x7e + x) << 8))
#define CIO_KEY_ALT_F(x) ((x<11)?((0x67 + x) << 8):((0x80 + x) << 8))
#define CIO_KEY_BACKTAB (0x0f << 8)
#define CIO_KEY_SHIFT_UP (0x38 << 8)
#define CIO_KEY_CTRL_UP (0x8d << 8)
#define CIO_KEY_SHIFT_LEFT (0x34 << 8)
#define CIO_KEY_CTRL_LEFT (0x73 << 8)
#define CIO_KEY_SHIFT_RIGHT (0x36 << 8)
#define CIO_KEY_CTRL_RIGHT (0x74 << 8)
#define CIO_KEY_SHIFT_DOWN (0x32 << 8)
#define CIO_KEY_CTRL_DOWN (0x91 << 8)
#define CIO_KEY_SHIFT_END (0x31 << 8)
#define CIO_KEY_CTRL_END (0x75 << 8)
#define CIO_KEY_MOUSE 0x7dE0 // This is the right mouse on Schneider/Amstrad PC1512 PC keyboards "F-14"
#define CIO_KEY_QUIT 0x7eE0 // "F-15"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment