class ControllerNotification

February 26, 2020 ยท View on GitHub

Member values

Member nameData typeDescriptionUsage
controller_stateoneof:state ControllerStateUsed to indicate if a controller connection or disconnection event occuredYou can manipulate the field controller_state as if it were a regular field. To clear the value of controller_state and reset it to the default value for its type, you call the ClearField() method of the Message interface. The message class also has a WhichOneof method that lets you find out which field (if any) in the oneof has been set.
controller_elementoneof:state ControllerElementStateUsed to indicate if a specific button (or axis) was pressed (or moved)You can manipulate the field controller_element as if it were a regular field. To clear the value of controller_element and reset it to the default value for its type, you call the ClearField() method of the Message interface. The message class also has a WhichOneof method that lets you find out which field (if any) in the oneof has been set.
timestampTimestampEvent timestampTo set timestamp, you simply assign a value directly to a field within timestamp. You can also use the parent message's HasField() method to check if a message type field value has been set.
user_handleUserProfileHandleUser that caused the controller eventTo set user_handle, you simply assign a value directly to a field within user_handle. You can also use the parent message's HasField() method to check if a message type field value has been set.
connectionConnectionConnection that caused the controller eventTo set connection, you simply assign a value directly to a field within connection. You can also use the parent message's HasField() method to check if a message type field value has been set.

Parent topic: Base (Python)