all repos — mgba @ d52be5b3d9e4e22f3d3ba5183093580d120e9253

mGBA Game Boy Advance Emulator

Key overrides for selecting states
Jeffrey Pfau jeffrey@endrift.com
Thu, 16 Oct 2014 00:18:58 -0700
commit

d52be5b3d9e4e22f3d3ba5183093580d120e9253

parent

a8d87a79792f86f0071ff66efed5d51f28d141f7

1 files changed, 11 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/LoadSaveState.cppsrc/platform/qt/LoadSaveState.cpp

@@ -64,6 +64,17 @@ break;

case Qt::Key_Right: column += 1; break; + case Qt::Key_1: + case Qt::Key_2: + case Qt::Key_3: + case Qt::Key_4: + case Qt::Key_5: + case Qt::Key_6: + case Qt::Key_7: + case Qt::Key_8: + case Qt::Key_9: + triggerState(static_cast<QKeyEvent*>(event)->key() - Qt::Key_1 + 1); + break; case Qt::Key_Escape: close(); break;