Skip to content

Commit 697000a

Browse files
committed
make ios check AppSettings.isEmulateMouse before enabling mouse events emulation
1 parent 16a28cc commit 697000a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class IosInputHandler implements TouchInput {
2121
private final static int MAX_TOUCH_EVENTS = 1024;
2222

2323
// Custom settings
24-
private boolean mouseEventsEnabled = true;
24+
private boolean mouseEventsEnabled = false;
2525
private boolean mouseEventsInvertX = false;
2626
private boolean mouseEventsInvertY = false;
2727
private boolean keyboardEventsEnabled = false;
@@ -143,7 +143,7 @@ public void setOmitHistoricEvents(boolean dontSendHistory) {
143143
public void loadSettings(AppSettings settings) {
144144
// TODO: add simulate keyboard to settings
145145
// keyboardEventsEnabled = true;
146-
mouseEventsEnabled = true;//settings.isEmulateMouse();
146+
mouseEventsEnabled = settings.isEmulateMouse();
147147
mouseEventsInvertX = settings.isEmulateMouseFlipX();
148148
mouseEventsInvertY = settings.isEmulateMouseFlipY();
149149

0 commit comments

Comments
 (0)