mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
WIP: add F3 and F4 to control the recording
It's not working properly, it's just a first try.
This commit is contained in:
parent
19e8e81550
commit
6ca3af3493
@ -2978,8 +2978,7 @@ CEvent::ChangePhase (Uint32 phase)
|
|||||||
|
|
||||||
if (phase == EV_PHASE_INIT)
|
if (phase == EV_PHASE_INIT)
|
||||||
m_demoTime = 0;
|
m_demoTime = 0;
|
||||||
if (phase == EV_PHASE_PLAY && !m_bDemoPlay && m_bStartRecording)
|
|
||||||
DemoRecStart (); // start recording
|
|
||||||
if (phase != EV_PHASE_PLAY)
|
if (phase != EV_PHASE_PLAY)
|
||||||
DemoRecStop (); // stop recording
|
DemoRecStop (); // stop recording
|
||||||
|
|
||||||
@ -5237,6 +5236,16 @@ CEvent::TreatEventBase (const SDL_Event & event)
|
|||||||
m_pDecor->SetInfoMode (!m_pDecor->GetInfoMode ());
|
m_pDecor->SetInfoMode (!m_pDecor->GetInfoMode ());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
case SDLK_F3:
|
||||||
|
if (m_phase == EV_PHASE_PLAY && !m_bDemoPlay && m_bStartRecording)
|
||||||
|
{
|
||||||
|
DemoRecStart (); // start recording
|
||||||
|
m_bStartRecording = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case SDLK_F4:
|
||||||
|
m_bStartRecording = false;
|
||||||
|
break;
|
||||||
case SDLK_F9:
|
case SDLK_F9:
|
||||||
if (m_phase == EV_PHASE_PLAY)
|
if (m_phase == EV_PHASE_PLAY)
|
||||||
m_pDecor->MemoPos (0, !!(m_keymod & KMOD_CTRL));
|
m_pDecor->MemoPos (0, !!(m_keymod & KMOD_CTRL));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user