(PS3) Implemented rewind/fast forward hooks

This commit is contained in:
TwinAphex51224 2011-12-03 00:07:01 +01:00
parent 278f314c03
commit a63ccbbdab
2 changed files with 7 additions and 3 deletions

View File

@ -257,7 +257,7 @@
# Enable rewinding. This will take a performance hit when playing, so it is disabled by default.
# Do note that rewinding will only work properly when using bSNES libsnes core atm.
# rewind_enable = false
# rewind_enable = true
# Rewinding buffer size in megabytes. Bigger rewinding buffer means you can rewind longer.
# The buffer should be approx. 20MB per minute of buffer time.

View File

@ -112,8 +112,12 @@ static void* ps3_input_init(void)
static bool ps3_key_pressed(void *data, int key)
{
(void)data;
(void)key;
return false; // Dummy for now.
if (key == SSNES_FAST_FORWARD_HOLD_KEY)
return CTRL_RSTICK_UP(state[0]);
else if (key == SSNES_REWIND)
return CTRL_RSTICK_DOWN(state[0]);
else
return false;
}
const input_driver_t input_ps3 = {