PadSeat

from acron.gamepad import PadSeat
class PadSeat(base, wrap: Callable = <class 'acron.gamepad.GamepadReader'>, prefix: str = 'gamepad')

Bases: object

One adopted gamepad: first to arrive wins, the survivor inherits.

wrap builds the seated object from a device — by default a GamepadReader, typically a game subclass of it. Whatever it builds must keep the device on .device, which is how a disconnect is matched to the seat. The game forwards Acron’s connect-device / disconnect-device events here and reads .pad.

Inheritance diagram

digraph inheritancecfcd8f43e9 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "PadSeat" [URL="acron.gamepad.PadSeat.html#acron.gamepad.PadSeat",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="One adopted gamepad: first to arrive wins, the survivor inherits."]; }