mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
add sdl key code log
This commit is contained in:
parent
ff09f2829b
commit
e2cc75265e
@ -279,6 +279,7 @@ static void SendKeyEvent(SDL_Event*event) {
|
||||
};
|
||||
for(int i=0;i<sizeof(KEYS)/sizeof(KEYS[0]);i++){
|
||||
if(event->key.keysym.sym == KEYS[i].sdlk){
|
||||
LOGV("sdlkey=%d,%x => %d",event->key.keysym.sym,event->key.keysym.sym,KEYS[i].key);
|
||||
InjectEvent(EV_KEY,KEYS[i].key,(event->type==SDL_KEYDOWN),INJECTDEV_KEY);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user