summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-04-16 21:58:47 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-04-16 21:58:47 +0000
commit32a5e70e9134f933756a96e547dcdd718b8d5f1e (patch)
tree0ba88391433d9157f96eb484d6de5975ff097181 /plugins/dfxvideo
parent733612551879e081161604a6e10b7e5fdfe0f89e (diff)
downloadpcsxr-32a5e70e9134f933756a96e547dcdd718b8d5f1e.tar.gz
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
Diffstat (limited to 'plugins/dfxvideo')
-rwxr-xr-xplugins/dfxvideo/key.c12
1 files changed, 8 insertions, 4 deletions
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;