PadSeat¶
from acron.gamepad import PadSeat
- class PadSeat(base, wrap: Callable = <class 'acron.gamepad.GamepadReader'>, prefix: str = 'gamepad')¶
Bases:
objectOne adopted gamepad: first to arrive wins, the survivor inherits.
wrapbuilds the seated object from a device — by default aGamepadReader, 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’sconnect-device/disconnect-deviceevents 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."]; }