SdlMouseButtons
final class SdlMouseButtons
Package: dev.joid.base.lwjgl3.sdl.input · Module: base-lwjgl3-sdl · Source: SdlMouseButtons.java
Maps the mouse buttons of SDL 3, which count from 1, to the mouse buttons of JOID.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
MouseButton | getButton(int button) static | Returns the button of the SDL button index: SDL_BUTTON_LEFT gives MouseButton.LEFT, SDL_BUTTON_X1 and SDL_BUTTON_X2 give BACK and FORWARD, any other index OTHER. |
Method details
Section titled “Method details”getButton
Section titled “getButton”MouseButton getButton(int button) static
Returns the button of the SDL button index: SDL_BUTTON_LEFT gives MouseButton.LEFT, SDL_BUTTON_X1 and SDL_BUTTON_X2 give BACK and FORWARD, any other index OTHER.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
