fly key capture lets shift, ctrl and alt through, so the play-here crosshair no longer sticks after flying fast
This commit is contained in:
1 parent
322e36c0f3
commit
64259ea15b
2 files changed
+9
-1
No files matched your search
@@ -144,6 +144,12 @@ Turns the hidden TestLevel (world 9, chapter 1) into a playground island: a gall
|
||||
|
||||
*Id* `testworld`
|
||||
|
||||
#### Village Chapter 1 (play-test)
|
||||
|
||||
Temporary play-test copy from the level editor – removed when the play-test ends. Changes the original level t1l1m001.
|
||||
|
||||
*Id* `playtest-village-chapter-1`
|
||||
|
||||
### Gameplay mods
|
||||
|
||||
#### Boot to level
|
||||
|
||||
@@ -110,7 +110,9 @@ public final class Viewport extends JPanel {
|
||||
} else if (e.getID() == KeyEvent.KEY_RELEASED) {
|
||||
keys.remove(e.getKeyCode());
|
||||
}
|
||||
return true;
|
||||
// modifiers pass on (others track Shift, e.g. the play-here crosshair); typed keys do not
|
||||
int k = e.getKeyCode();
|
||||
return k != KeyEvent.VK_SHIFT && k != KeyEvent.VK_CONTROL && k != KeyEvent.VK_ALT && k != KeyEvent.VK_META;
|
||||
};
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user