mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
enable default tilt controls
This commit is contained in:
1 parent
9c219bc18b
commit
35adc5ed7f
1 file changed
+8
-11
+8
-11
@@ -659,12 +659,14 @@ void NativeAxis(const AxisInput &key) {
|
||||
|
||||
//only handle tilt events if tilt is enabled.
|
||||
if (g_Config.iTiltInputType == TILT_NULL){
|
||||
return;
|
||||
}else{
|
||||
//reset all tilt events every frame.
|
||||
//ResetTiltEvents();
|
||||
}
|
||||
|
||||
//if tilt events are disabled, then run it through the usual way.
|
||||
if (screenManager) {
|
||||
screenManager->axis(key);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
//create the base coordinate tilt system from the calibration data.
|
||||
//This is static for no particular reason, can be un-static'ed
|
||||
static Tilt baseTilt;
|
||||
@@ -735,12 +737,7 @@ void NativeAxis(const AxisInput &key) {
|
||||
GenerateActionButtonEvent(trueTilt);
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
if (screenManager)
|
||||
screenManager->axis(key);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
void NativeMessageReceived(const char *message, const char *value) {
|
||||
|
||||
Reference in new issue
Block a user