[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hello!
Here is the patch format of the changes I suggested a while ago.
(Now desired ASCII codes are returned when shift+(enter/backspace/etc.)
is pressed. Bug fixed where && was supposed to be || (Laurence Withers
confirmed that is was a problem, I was only 99% sure))
Have a nice day!
Stephen Kittelson
--- all3932/src/misc/pckeys.c Mon Mar 13 00:23:54 2000
+++ allegro/src/misc/pckeys.c Tue Jun 20 15:07:42 2000
@@ -202,9 +202,9 @@
/* numbers */ ')', '!', '@', '#', '$', '%', '^', '&', '*', '(',
/* numpad */ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
/* func keys */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
- /* misc chars */ 27, '~', '_', '+', 126, 126, '{', '}', 126, ':', '"', '|', '|', '<', '>', '?', 1,
+ /* misc chars */ 27, '~', '_', '+', 8, 9, '{', '}', 13, ':', '"', '|', '|', '<', '>', '?', ' ',
/* controls */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
- /* numpad */ '/', '*', '-', '+', '.', 126,
+ /* numpad */ '/', '*', '-', '+', '.', 13,
/* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
@@ -319,7 +319,7 @@
{
int val;
- if ((scancode < 0) && (scancode >= KEY_MAX))
+ if ((scancode < 0) || (scancode >= KEY_MAX))
return 0;
val = _key_ascii_table[scancode];