Package org.lwjgl.sdl
Class SDLMouse
java.lang.Object
org.lwjgl.sdl.SDLMouse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromSDL.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic longnSDL_CreateColorCursor(long surface, int hot_x, int hot_y) SDL_Cursor * SDL_CreateColorCursor(SDL_Surface * surface, int hot_x, int hot_y)static longnSDL_CreateCursor(long data, long mask, int w, int h, int hot_x, int hot_y) SDL_Cursor * SDL_CreateCursor(Uint8 const * data, Uint8 const * mask, int w, int h, int hot_x, int hot_y)static intnSDL_GetGlobalMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetGlobalMouseState(float * x, float * y)static longnSDL_GetMice(long count) SDL_MouseID * SDL_GetMice(int * count)static longnSDL_GetMouseNameForID(int instance_id) char const * SDL_GetMouseNameForID(SDL_MouseID instance_id)static intnSDL_GetMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetMouseState(float * x, float * y)static intnSDL_GetRelativeMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetRelativeMouseState(float * x, float * y)static booleanSDL_CaptureMouse(boolean enabled) bool SDL_CaptureMouse(bool enabled)static longSDL_CreateColorCursor(SDL_Surface surface, int hot_x, int hot_y) SDL_Cursor * SDL_CreateColorCursor(SDL_Surface * surface, int hot_x, int hot_y)static longSDL_CreateCursor(ByteBuffer data, ByteBuffer mask, int w, int h, int hot_x, int hot_y) SDL_Cursor * SDL_CreateCursor(Uint8 const * data, Uint8 const * mask, int w, int h, int hot_x, int hot_y)static longSDL_CreateSystemCursor(int id) SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id)static booleanbool SDL_CursorVisible(void)static voidSDL_DestroyCursor(long cursor) void SDL_DestroyCursor(SDL_Cursor * cursor)static longSDL_Cursor * SDL_GetCursor(void)static longSDL_Cursor * SDL_GetDefaultCursor(void)static intSDL_GetGlobalMouseState(@Nullable FloatBuffer x, @Nullable FloatBuffer y) SDL_MouseButtonFlags SDL_GetGlobalMouseState(float * x, float * y)static @Nullable IntBufferSDL_MouseID * SDL_GetMice(int * count)static longSDL_Window * SDL_GetMouseFocus(void)static @Nullable StringSDL_GetMouseNameForID(int instance_id) char const * SDL_GetMouseNameForID(SDL_MouseID instance_id)static intSDL_GetMouseState(@Nullable FloatBuffer x, @Nullable FloatBuffer y) SDL_MouseButtonFlags SDL_GetMouseState(float * x, float * y)static intSDL_GetRelativeMouseState(@Nullable FloatBuffer x, @Nullable FloatBuffer y) SDL_MouseButtonFlags SDL_GetRelativeMouseState(float * x, float * y)static booleanSDL_GetWindowRelativeMouseMode(long window) bool SDL_GetWindowRelativeMouseMode(SDL_Window * window)static booleanbool SDL_HasMouse(void)static booleanbool SDL_HideCursor(void)static booleanSDL_SetCursor(long cursor) bool SDL_SetCursor(SDL_Cursor * cursor)static booleanSDL_SetWindowRelativeMouseMode(long window, boolean enabled) bool SDL_SetWindowRelativeMouseMode(SDL_Window * window, bool enabled)static booleanbool SDL_ShowCursor(void)static booleanSDL_WarpMouseGlobal(float x, float y) bool SDL_WarpMouseGlobal(float x, float y)static voidSDL_WarpMouseInWindow(long window, float x, float y) void SDL_WarpMouseInWindow(SDL_Window * window, float x, float y)
-
Field Details
-
SDL_SYSTEM_CURSOR_DEFAULT
public static final int SDL_SYSTEM_CURSOR_DEFAULT- See Also:
-
SDL_SYSTEM_CURSOR_TEXT
public static final int SDL_SYSTEM_CURSOR_TEXT- See Also:
-
SDL_SYSTEM_CURSOR_WAIT
public static final int SDL_SYSTEM_CURSOR_WAIT- See Also:
-
SDL_SYSTEM_CURSOR_CROSSHAIR
public static final int SDL_SYSTEM_CURSOR_CROSSHAIR- See Also:
-
SDL_SYSTEM_CURSOR_PROGRESS
public static final int SDL_SYSTEM_CURSOR_PROGRESS- See Also:
-
SDL_SYSTEM_CURSOR_NWSE_RESIZE
public static final int SDL_SYSTEM_CURSOR_NWSE_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_NESW_RESIZE
public static final int SDL_SYSTEM_CURSOR_NESW_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_EW_RESIZE
public static final int SDL_SYSTEM_CURSOR_EW_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_NS_RESIZE
public static final int SDL_SYSTEM_CURSOR_NS_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_MOVE
public static final int SDL_SYSTEM_CURSOR_MOVE- See Also:
-
SDL_SYSTEM_CURSOR_NOT_ALLOWED
public static final int SDL_SYSTEM_CURSOR_NOT_ALLOWED- See Also:
-
SDL_SYSTEM_CURSOR_POINTER
public static final int SDL_SYSTEM_CURSOR_POINTER- See Also:
-
SDL_SYSTEM_CURSOR_NW_RESIZE
public static final int SDL_SYSTEM_CURSOR_NW_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_N_RESIZE
public static final int SDL_SYSTEM_CURSOR_N_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_NE_RESIZE
public static final int SDL_SYSTEM_CURSOR_NE_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_E_RESIZE
public static final int SDL_SYSTEM_CURSOR_E_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_SE_RESIZE
public static final int SDL_SYSTEM_CURSOR_SE_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_S_RESIZE
public static final int SDL_SYSTEM_CURSOR_S_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_SW_RESIZE
public static final int SDL_SYSTEM_CURSOR_SW_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_W_RESIZE
public static final int SDL_SYSTEM_CURSOR_W_RESIZE- See Also:
-
SDL_SYSTEM_CURSOR_COUNT
public static final int SDL_SYSTEM_CURSOR_COUNT- See Also:
-
SDL_MOUSEWHEEL_NORMAL
public static final int SDL_MOUSEWHEEL_NORMAL- See Also:
-
SDL_MOUSEWHEEL_FLIPPED
public static final int SDL_MOUSEWHEEL_FLIPPED- See Also:
-
SDL_BUTTON_LEFT
public static final int SDL_BUTTON_LEFT- See Also:
-
SDL_BUTTON_MIDDLE
public static final int SDL_BUTTON_MIDDLE- See Also:
-
SDL_BUTTON_RIGHT
public static final int SDL_BUTTON_RIGHT- See Also:
-
SDL_BUTTON_X1
public static final int SDL_BUTTON_X1- See Also:
-
SDL_BUTTON_X2
public static final int SDL_BUTTON_X2- See Also:
-
SDL_BUTTON_LMASK
public static final int SDL_BUTTON_LMASK -
SDL_BUTTON_MMASK
public static final int SDL_BUTTON_MMASK -
SDL_BUTTON_RMASK
public static final int SDL_BUTTON_RMASK -
SDL_BUTTON_X1MASK
public static final int SDL_BUTTON_X1MASK -
SDL_BUTTON_X2MASK
public static final int SDL_BUTTON_X2MASK
-
-
Method Details
-
SDL_HasMouse
public static boolean SDL_HasMouse()bool SDL_HasMouse(void) -
nSDL_GetMice
public static long nSDL_GetMice(long count) SDL_MouseID * SDL_GetMice(int * count) -
SDL_GetMice
SDL_MouseID * SDL_GetMice(int * count) -
nSDL_GetMouseNameForID
public static long nSDL_GetMouseNameForID(int instance_id) char const * SDL_GetMouseNameForID(SDL_MouseID instance_id) -
SDL_GetMouseNameForID
char const * SDL_GetMouseNameForID(SDL_MouseID instance_id) -
SDL_GetMouseFocus
public static long SDL_GetMouseFocus()SDL_Window * SDL_GetMouseFocus(void) -
nSDL_GetMouseState
public static int nSDL_GetMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetMouseState(float * x, float * y) -
SDL_GetMouseState
SDL_MouseButtonFlags SDL_GetMouseState(float * x, float * y) -
nSDL_GetGlobalMouseState
public static int nSDL_GetGlobalMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetGlobalMouseState(float * x, float * y) -
SDL_GetGlobalMouseState
SDL_MouseButtonFlags SDL_GetGlobalMouseState(float * x, float * y) -
nSDL_GetRelativeMouseState
public static int nSDL_GetRelativeMouseState(long x, long y) SDL_MouseButtonFlags SDL_GetRelativeMouseState(float * x, float * y) -
SDL_GetRelativeMouseState
SDL_MouseButtonFlags SDL_GetRelativeMouseState(float * x, float * y) -
SDL_WarpMouseInWindow
public static void SDL_WarpMouseInWindow(long window, float x, float y) void SDL_WarpMouseInWindow(SDL_Window * window, float x, float y) -
SDL_WarpMouseGlobal
public static boolean SDL_WarpMouseGlobal(float x, float y) bool SDL_WarpMouseGlobal(float x, float y) -
SDL_SetWindowRelativeMouseMode
public static boolean SDL_SetWindowRelativeMouseMode(long window, boolean enabled) bool SDL_SetWindowRelativeMouseMode(SDL_Window * window, bool enabled) -
SDL_GetWindowRelativeMouseMode
public static boolean SDL_GetWindowRelativeMouseMode(long window) bool SDL_GetWindowRelativeMouseMode(SDL_Window * window) -
SDL_CaptureMouse
public static boolean SDL_CaptureMouse(boolean enabled) bool SDL_CaptureMouse(bool enabled) -
nSDL_CreateCursor
public static long nSDL_CreateCursor(long data, long mask, int w, int h, int hot_x, int hot_y) SDL_Cursor * SDL_CreateCursor(Uint8 const * data, Uint8 const * mask, int w, int h, int hot_x, int hot_y) -
SDL_CreateCursor
public static long SDL_CreateCursor(ByteBuffer data, ByteBuffer mask, int w, int h, int hot_x, int hot_y) SDL_Cursor * SDL_CreateCursor(Uint8 const * data, Uint8 const * mask, int w, int h, int hot_x, int hot_y) -
nSDL_CreateColorCursor
public static long nSDL_CreateColorCursor(long surface, int hot_x, int hot_y) SDL_Cursor * SDL_CreateColorCursor(SDL_Surface * surface, int hot_x, int hot_y) -
SDL_CreateColorCursor
SDL_Cursor * SDL_CreateColorCursor(SDL_Surface * surface, int hot_x, int hot_y) -
SDL_CreateSystemCursor
public static long SDL_CreateSystemCursor(int id) SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id) -
SDL_SetCursor
public static boolean SDL_SetCursor(long cursor) bool SDL_SetCursor(SDL_Cursor * cursor) -
SDL_GetCursor
public static long SDL_GetCursor()SDL_Cursor * SDL_GetCursor(void) -
SDL_GetDefaultCursor
public static long SDL_GetDefaultCursor()SDL_Cursor * SDL_GetDefaultCursor(void) -
SDL_DestroyCursor
public static void SDL_DestroyCursor(long cursor) void SDL_DestroyCursor(SDL_Cursor * cursor) -
SDL_ShowCursor
public static boolean SDL_ShowCursor()bool SDL_ShowCursor(void) -
SDL_HideCursor
public static boolean SDL_HideCursor()bool SDL_HideCursor(void) -
SDL_CursorVisible
public static boolean SDL_CursorVisible()bool SDL_CursorVisible(void)
-