Skip to content
Snippets Groups Projects
Commit 3733f04f authored by rswindell's avatar rswindell
Browse files

Add CIO macro definitions and Win32 key-bindings for Shift-Insert, Ctrl-Insert,

Shift-Delete, and Ctrl-Delete to be used for cut and paste operations
(not Ctrl-Delete).
parent afad8590
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -521,6 +521,10 @@ CIOLIBEXPORT int CIOLIBCALL ciomouse_delevent(int event);
#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 (0x30 << 8) /* Shift-Insert */
#define CIO_KEY_SHIFT_DC (0x2e << 8) /* Shift-Delete */
#define CIO_KEY_CTRL_IC (0x92 << 8) /* Ctrl-Insert */
#define CIO_KEY_CTRL_DC (0x93 << 8) /* Ctrl-Delete */
#define CIO_KEY_LEFT (0x4b << 8)
#define CIO_KEY_RIGHT (0x4d << 8)
#define CIO_KEY_PPAGE (0x49 << 8)
......
......@@ -101,8 +101,8 @@ CIOLIBEXPORTVAR const struct keyvals keyval[] =
{VK_UP, 0x4800, 0x4800, 0x8d00, 0x9800},
{VK_RIGHT, 0x4d00, 0x4d00, 0x7400, 0x9d00},
{VK_DOWN, 0x5000, 0x5000, 0x9100, 0xa000},
{VK_INSERT, 0x5200, 0x5200, 0x9200, 0xa200},
{VK_DELETE, 0x5300, 0x5300, 0x9300, 0xa300},
{VK_INSERT, CIO_KEY_IC, CIO_KEY_SHIFT_IC, CIO_KEY_CTRL_IC, 0xa200},
{VK_DELETE, CIO_KEY_DC, CIO_KEY_SHIFT_DC, CIO_KEY_CTRL_DC, 0xa300},
{VK_NUMPAD0, '0', 0x5200, 0x9200, 0},
{VK_NUMPAD1, '1', 0x4f00, 0x7500, 0},
{VK_NUMPAD2, '2', 0x5000, 0x9100, 0},
......
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