get_tablets Function

Defined in pyglet.input

get_tablets(display=None)

Get a list of tablets.

This function may return a valid tablet device even if one is not attached (for example, it is not possible on Mac OS X to determine if a tablet device is connected). Despite returning a list of tablets, pyglet does not currently support multiple tablets, and the behaviour is undefined if more than one is attached.

Parameters:display (Display) – The display device to query for input devices. Ignored on Mac OS X and Windows. On Linux, defaults to the default display device.
Return type:list of Tablet

Previous topic

get_joysticks Function

Next topic

pyglet.media