From: Christer S. <chr...@md...> - 2007-08-08 10:47:09
|
On Wednesdayen den 8 August 2007, Peter Wang wrote: >On 2007-08-04, Christer Sandberg <chr...@md...> wrote: >> On Saturdayen den 4 August 2007, Peter Wang wrote: >> >On 2007-08-04, Peter Wang <nov...@gm...> wrote: >> >> On 2007-08-03, Christer Sandberg <chr...@md...> wrote: >> >> > What ascii value should readkey() return when shift+cursor key are >> >> > pressed? On my Linux (X11 keyboard driver) it returns 0 for all the >> >> > navigation and editing keys (except for Delete), while it has been >> >> > reported that the DJGPP executable returns 1. Is the difference a bug >> >> > or should the ascii value be regarded undefined for these keys? >> >> > Testcase exkeys, Allegro 4.2.2. >Let's define it as 0. Is the DJGPP port the only one which needs >fixing? Linux and Windows returns 0, I don't have access to other platforms. I actually read the DJGPP keyboard code of Allegro in ored to understand what is going on when a key is pressed, but I got lost. Maybe I looked into the wrong files. I thought that misc/pckeys.c:_handle_pckey() was a candidate. A key shift table is used, which seems to contain 0xffff, for the concerned codes. When coming to _handle_key_press I think data should be platform independent. -- Christer |