Skip to content

Commit

Permalink
Update event-handling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Feb 25, 2024
1 parent f08edfb commit 13a5e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/input/event-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The next five methods report mouse/touch events:
* *touchUp()*: Called when a finger was lifted from the screen or a mouse button was released. Reports the last known coordinates as well as the pointer index and mouse button (always `Buttons.Left` for touch screens).
* *touchDragged()*: Called when a finger is being dragged over the screen or the mouse is dragged while a button is pressed. Reports the coordinates and pointer index. The button is not reported as multiple buttons could be pressed while the mouse is being dragged. You can use `Gdx.input.isButtonPressed()` to check for a specific button.
* *mouseMoved()*: Called when the mouse is moved over the screen without a mouse button being down. This event is only relevant on the desktop and will never occur on touch screen devices where you only get `touchDragged()` events.
* *scrolled()*: Called when the scroll wheel of the mouse was turned. Reports a positive or a negative value depending on the direction of spin. This will never be called for touch screen devices.
* *scrolled()*: Called when the scroll wheel of the mouse was turned. Reports a positive value, a negative value or zero depending on the direction of spin. This will never be called for touch screen devices.

Each of the methods returns a `boolean`. We'll look into why that is in the InputMultiplexer section below.

Expand Down

0 comments on commit 13a5e9c

Please sign in to comment.