A keyboard handler is a Function , Boolean>>, that is a function that takes a transition between two KeyboardStates and returns a boolean, whether or not it ever wants to be called again
(Function<Event<KeyboardState>, Boolean> h)
| 678 | */ |
| 679 | @HiddenInAutocomplete |
| 680 | public void fireMouseTransition(MouseState before, MouseState after) { |
| 681 | after.keyboardState = keyboardState; |
| 682 | |
| 683 | if ((after.mods & GLFW_MOD_SHIFT) != 0) |
| 684 | after.keyboardState = after.keyboardState.withKey(GLFW_KEY_LEFT_SHIFT, true); |
| 685 | else after.keyboardState = after.keyboardState.withKey(GLFW_KEY_LEFT_SHIFT, false) |
| 686 | .withKey(GLFW_KEY_RIGHT_SHIFT, false); |
no test coverage detected