Re: [AD] Keyboard: "delete/dot" key on keypad return unknown scancode under Windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 28.06.2011 23:44, AJ wrote:

you sure about that?

i have 0x6D listed as  MINUS.. also known as  VK_SUBTRACT

VK_DECIMAL  (the dot/delete key)   is  0x6E

I think 6E is where he put it, actually. ALLEGRO_KEY_PAD_DELETE is the wrong name, though. When num lock is on, it should be ALLEGRO_KEY_PAD_DECIMAL or something. Windows calls it VK_DECIMAL, because it's not always a dot. On my Norwegian keyboard it's a comma. Depends on what Allegro does on other platforms, though.






On 29/06/2011 7:17 AM, Omar Cornut wrote:
 I tested this on three computers, pressing the "del/dot" key on a keypad
 return keycode 123 to the user which is undefined+16 in Allegro's keycodes.h

 The patch for wkeyboard.c is:

 -   /* 0x6C */    ALLEGRO_KEY_UNKNOWN+15,  ALLEGRO_KEY_PAD_MINUS,
 ALLEGRO_KEY_UNKNOWN+16,     ALLEGRO_KEY_PAD_SLASH,

 +   /* 0x6C */    ALLEGRO_KEY_UNKNOWN+15,  ALLEGRO_KEY_PAD_MINUS,
 ALLEGRO_KEY_PAD_DELETE,     ALLEGRO_KEY_PAD_SLASH,

 Regards.
 Omar

 ------------------------------------------------------------------------------
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/