From 32a5e70e9134f933756a96e547dcdd718b8d5f1e Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Tue, 16 Apr 2013 21:58:47 +0000 Subject: GTK: dfinput added emulator key (hotkey) mapping to keyboard or controller. Existing hotkeys are hard coded like F1 for savestate, but now it can have an alias hotkey on keyboard s button for example. These can be configured from dfinput dialog. Also added support for fastforward key (tilde / section key). Currently only dfxvideo supports it by full extent. Hopefully someone can merge these changes to Windows build. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@84102 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfxvideo/key.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/dfxvideo') diff --git a/plugins/dfxvideo/key.c b/plugins/dfxvideo/key.c index c47a605b..3f101f4f 100755 --- a/plugins/dfxvideo/key.c +++ b/plugins/dfxvideo/key.c @@ -54,11 +54,15 @@ void GPUkeypressed(int keycode) { case 0xFFC9: //X11 key: F12 case ((1<<29) | 0xFF0D): //special keycode from pcsx-df: alt-enter - bChangeWinMode=TRUE; - break; + bChangeWinMode=TRUE; + break; + case XK_section: //special - accelerate + iFastFwd = ( iFastFwd != 0 ? 0 : 1 ); + UseFrameLimit = ( UseFrameLimit != 0 ? 0 : 1 ); + break; case VK_F5: GPUmakeSnapshot(); - break; + break; case VK_INSERT: if(iUseFixes) {iUseFixes=0;dwActFixes=0;} @@ -70,7 +74,7 @@ void GPUkeypressed(int keycode) case VK_DEL: if(ulKeybits&KEY_SHOWFPS) ulKeybits&=~KEY_SHOWFPS; - else + else { ulKeybits|=KEY_SHOWFPS; szDispBuf[0]=0; -- cgit v1.2.3