mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Fix toggling pause with the bound pause key
This commit is contained in:
1 parent
eb6e9d9c4f
commit
9f5d28ca6e
2 files changed
+12
-2
No files matched your search
@@ -51,6 +51,12 @@ DrawEngineCommon::DrawEngineCommon() : decoderMap_(32) {
|
||||
transformedExpanded_ = (TransformedVertex *)AllocateMemoryPages(3 * TRANSFORMED_VERTEX_BUFFER_SIZE, MEM_PROT_READ | MEM_PROT_WRITE);
|
||||
decoded_ = (u8 *)AllocateMemoryPages(DECODED_VERTEX_BUFFER_SIZE, MEM_PROT_READ | MEM_PROT_WRITE);
|
||||
decIndex_ = (u16 *)AllocateMemoryPages(DECODED_INDEX_BUFFER_SIZE, MEM_PROT_READ | MEM_PROT_WRITE);
|
||||
|
||||
_dbg_assert_(transformed_);
|
||||
_dbg_assert_(transformedExpanded_);
|
||||
_dbg_assert_(decoded_);
|
||||
_dbg_assert_(decIndex_);
|
||||
|
||||
indexGen.Setup(decIndex_);
|
||||
|
||||
InitDepthRaster();
|
||||
|
||||
+6
-2
@@ -376,9 +376,13 @@ GamePauseScreen::~GamePauseScreen() {
|
||||
}
|
||||
|
||||
bool GamePauseScreen::UnsyncKey(const KeyInput &key) {
|
||||
int retval = UIScreen::UnsyncKey(key);
|
||||
bool retval = UIScreen::UnsyncKey(key);
|
||||
bool pauseTrigger = false;
|
||||
return retval || g_controlMapper.Key(key, &pauseTrigger);
|
||||
retval = g_controlMapper.Key(key, &pauseTrigger) || retval;
|
||||
if (pauseTrigger) {
|
||||
TriggerFinish(DR_BACK);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
void GamePauseScreen::UnsyncAxis(const AxisInput *axes, size_t count) {
|
||||
|
||||
Reference in new issue
Block a user