pygame2.sdl.mouse

The pygame2.sdl.mouse C API contains objects and functions for accessing and manipulating the mouse input device and cursor design.

Import

Include headers:

pygame2/pgsdl.h
int import_pygame2_sdl_mouse(void)
Imports the pygame2.sdl.mouse module. This returns 0 on success and -1 on failure.

PyCursor

PyCursor
PyCursor_Type

The PyCursor object is used manipulating the design of the visible mouse cursor.

Members

SDL_Cursor* PyCursor.cursor
The SDL_Cursor pointer to access the mouse cursor design.

Functions

int PyCursor_Check(PyObject *obj)
Returns true, if the argument is a PyCursor or a subclass of PyCursor.
SDL_Cursor* PyCursor_AsCursor(PyObject *obj)
Macro for accessing the cursor member of the PyCursor. This does not perform any type or argument checks.

Table Of Contents

Previous topic

pygame2.sdl.joystick

Next topic

pygame2.sdl.video

This Page