Disable wheapon wheel, enable mouse buttons

This commit is contained in:
mittorn 2015-09-06 05:15:06 +07:00
parent 98d60887b2
commit 556a814f7c
2 changed files with 1 additions and 9 deletions

View file

@ -244,7 +244,7 @@ public class TouchControlsSettings {
invertLook = Settings.getBoolOption(ctx, "invert_look", false); invertLook = Settings.getBoolOption(ctx, "invert_look", false);
precisionShoot = Settings.getBoolOption(ctx, "precision_shoot", false); precisionShoot = Settings.getBoolOption(ctx, "precision_shoot", false);
showSticks = Settings.getBoolOption(ctx, "show_sticks", false); showSticks = Settings.getBoolOption(ctx, "show_sticks", false);
enableWeaponWheel = Settings.getBoolOption(ctx, "enable_ww", true); enableWeaponWheel = Settings.getBoolOption(ctx, "enable_ww", false);
doubleTapMove = Settings.getIntOption(ctx, "double_tap_move", 0); doubleTapMove = Settings.getIntOption(ctx, "double_tap_move", 0);
doubleTapLook = Settings.getIntOption(ctx, "double_tap_look", 0); doubleTapLook = Settings.getIntOption(ctx, "double_tap_look", 0);

View file

@ -336,14 +336,6 @@ public class SDLActivity extends Activity {
int keyCode = event.getKeyCode(); int keyCode = event.getKeyCode();
// Ignore certain special keys so they're handled by Android // Ignore certain special keys so they're handled by Android
if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN ||
keyCode == KeyEvent.KEYCODE_VOLUME_UP ||
keyCode == KeyEvent.KEYCODE_CAMERA ||
keyCode == 168 || /* API 11: KeyEvent.KEYCODE_ZOOM_IN */
keyCode == 169 /* API 11: KeyEvent.KEYCODE_ZOOM_OUT */
) {
return false;
}
return super.dispatchKeyEvent(event); return super.dispatchKeyEvent(event);
} }