Skip to content

Commit

Permalink
Add ZL1 scancode (using 0x56)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmatheussen committed Sep 1, 2015
1 parent bda83d0 commit 99114eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Qt/Qt_ReqType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace{
, gotit(false)
{}
void keyPressEvent ( QKeyEvent * event ){
printf("oh yeah baby %d\n",event->key());
printf("oh yeah baby %d, scancode: %x\n",event->key(),event->nativeScanCode()-8);
//event->ignore();
if(event->key()>0){
QLineEdit::keyPressEvent(event);
Expand Down
2 changes: 2 additions & 0 deletions common/scancodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
virtual key (vk) to scancode: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646306%28v=vs.85%29.aspx
scancode table: https://msdn.microsoft.com/en-us/library/Aa299374%28v=VS.60%29.aspx
http://www.quadibloc.com/comp/scan.htm
ordinary scan codes: http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
*/
static int scancode[0x100] = {EVENT_NO};
static void init_scancodes(void){
Expand Down Expand Up @@ -46,6 +47,7 @@ static void init_scancodes(void){
s(1F, S); s(3F, F5);
s(20, D); s(40, F6);

s(56, ZL1);
#undef s
}

Expand Down

0 comments on commit 99114eb

Please sign in to comment.