summaryrefslogtreecommitdiff
path: root/macosx/plugins/PeopsXgl/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/PeopsXgl/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/PeopsXgl/macsrc')
-rw-r--r--macosx/plugins/PeopsXgl/macsrc/drawgl.m25
1 files changed, 24 insertions, 1 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/drawgl.m b/macosx/plugins/PeopsXgl/macsrc/drawgl.m
index 5a75efab..2ad7b985 100644
--- a/macosx/plugins/PeopsXgl/macsrc/drawgl.m
+++ b/macosx/plugins/PeopsXgl/macsrc/drawgl.m
@@ -233,8 +233,31 @@ void ShowTextGpuPic(void)
void HandleKey(int keycode)
{
switch (keycode) {
+ case GPU_FRAME_LIMIT:
+ if(bUseFrameLimit) {
+ bUseFrameLimit = false;
+ iFrameLimit = 1;
+ }
+ else {
+ bUseFrameLimit = true;
+ iFrameLimit = 2;
+ }
+ SetAutoFrameCap();
+ break;
case GPU_FAST_FORWARD:
- bUseFrameLimit = !bUseFrameLimit;
+ if(bUseFrameLimit) {
+ bUseFrameLimit = false;
+ iFrameLimit = 1;
+ bUseFrameSkip = true;
+ iFastFwd = 0;
+ }
+ else {
+ bUseFrameLimit = true;
+ iFrameLimit = 2;
+ bUseFrameSkip = false;
+ iFastFwd = 0;
+ }
+ bSkipNextFrame = FALSE;
break;
case GPU_FULLSCREEN_KEY:
[gameController setFullscreen:![gameController fullscreen]];