mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Fix ifdefs not to break iOS.
This commit is contained in:
1 parent
a2853d4986
commit
4ba1373985
1 file changed
+9
-5
+9
-5
@@ -179,12 +179,16 @@ void EmuScreen::update(InputState &input) {
|
||||
// Do this no matter the value of g_Config.bShowTouchControls, some people
|
||||
// like to use invisible controls...
|
||||
// Don't force on platforms that likely don't have a touchscreen, like Win32, OSX, and Linux...
|
||||
// NOTE: Breaks both hidden and visible touch controls on Win/Lin/Mac by doing this!
|
||||
#if !defined( _WIN32) && !defined(__APPLE__) && !defined(__linux__)
|
||||
UpdateGamepad(input);
|
||||
|
||||
UpdateInputState(&input);
|
||||
// TODO: What are good ifdefs for OSX and Linux, without breaking other mobile platforms?
|
||||
#ifdef _WIN32
|
||||
if(g_Config.bShowTouchControls) {
|
||||
#else
|
||||
if(true) {
|
||||
#endif
|
||||
UpdateGamepad(input);
|
||||
|
||||
UpdateInputState(&input);
|
||||
}
|
||||
// Then translate pad input into PSP pad input. Also, add in tilt.
|
||||
static const int mapping[12][2] = {
|
||||
{PAD_BUTTON_A, CTRL_CROSS},
|
||||
|
||||
Reference in new issue
Block a user