summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFXVideo/macsrc
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-12-20 23:04:58 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-12-20 23:04:58 +0000
commit520a24fb83acd0bb98f8b364aa5ea1ceae43f76a (patch)
tree2428c176eabe6fe62fd80ff3631b5ff36edd7a45 /macosx/plugins/DFXVideo/macsrc
parent2bb5d0778664ab48097f80d212876263f604a747 (diff)
downloadpcsxr-520a24fb83acd0bb98f8b364aa5ea1ceae43f76a.tar.gz
Implement fast-forward in the display plug-ins for OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81907 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo/macsrc')
-rw-r--r--macosx/plugins/DFXVideo/macsrc/drawgl.m25
1 files changed, 24 insertions, 1 deletions
diff --git a/macosx/plugins/DFXVideo/macsrc/drawgl.m b/macosx/plugins/DFXVideo/macsrc/drawgl.m
index be679143..eb3850d4 100644
--- a/macosx/plugins/DFXVideo/macsrc/drawgl.m
+++ b/macosx/plugins/DFXVideo/macsrc/drawgl.m
@@ -175,8 +175,31 @@ void ShowTextGpuPic(void)
void HandleKey(int keycode)
{
switch (keycode) {
+ case GPU_FRAME_LIMIT:
+ if(UseFrameLimit) {
+ UseFrameLimit = 0;
+ iFrameLimit = 1;
+ }
+ else {
+ UseFrameLimit = 1;
+ iFrameLimit = 2;
+ }
+ SetAutoFrameCap();
+ break;
case GPU_FAST_FORWARD:
- UseFrameLimit ^= 1;
+ if(UseFrameLimit) {
+ UseFrameLimit = 0;
+ iFrameLimit = 1;
+ UseFrameSkip = 1;
+ iFastFwd = 0;
+ }
+ else {
+ UseFrameLimit = 1;
+ iFrameLimit = 2;
+ UseFrameSkip = 0;
+ iFastFwd = 0;
+ }
+ bSkipNextFrame = FALSE;
break;
case GPU_FULLSCREEN_KEY:
[gameController setFullscreen:![gameController fullscreen]];