summaryrefslogtreecommitdiffstats
path: root/mips-dis.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2012-08-31 10:56:25 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-05 15:48:56 -0300
commit1048c88f03545fa42bdebb077871a743a614d2ab (patch)
tree16761c85ab1035abf2c9b75c0b24d33fc8ed7fb8 /mips-dis.c
parent411656f48d71131d6d1cb5b6db792fc7b451e72e (diff)
downloadhqemu-1048c88f03545fa42bdebb077871a743a614d2ab.zip
hqemu-1048c88f03545fa42bdebb077871a743a614d2ab.tar.gz
monitor: move key_defs[] table and introduce two help functions
This patch added two help functions to convert key/code to index of mapping table, those functions will return Q_KEY_CODE_MAX if the code/key is invalid. Patch also moved key_defs[] to input.c, and removed useless KeyDef struct. Key's index in QKeyCode enmu is same as keycode's index in new key_defs[]. Monitor functions were changed to access key_defs[] directly. key_defs[] is used in do_send_key(), so export key_defs[]. It will be changed to static in next patch. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'mips-dis.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud