Panda3D
Public Member Functions | Public Attributes | List of all members
InputDevice::ButtonState Class Reference

Public Member Functions

 ButtonState (ButtonHandle handle)
 
ALWAYS_INLINE bool is_known () const
 
ALWAYS_INLINE bool is_pressed () const
 
 operator bool ()
 

Public Attributes

State _state = S_unknown
 
ButtonHandle handle = ButtonHandle::none()
 
 is_known
 True if the button state is currently known. More...
 
 is_pressed
 True if the button is currently known to be pressed. More...
 

Detailed Description

Definition at line 137 of file inputDevice.h.

Member Data Documentation

◆ is_known

ALWAYS_INLINE bool InputDevice::ButtonState::is_known

True if the button state is currently known.

Definition at line 147 of file inputDevice.h.

Referenced by InputDevice::output_buttons(), and InputDevice::write_buttons().

◆ is_pressed

ALWAYS_INLINE bool InputDevice::ButtonState::is_pressed

True if the button is currently known to be pressed.

Definition at line 148 of file inputDevice.h.


The documentation for this class was generated from the following files: