Panda3D
Static Public Member Functions | List of all members
GamepadButton Class Reference

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to gamepad buttons. More...

#include "gamepadButton.h"

Static Public Member Functions

static ButtonHandle back ()
 
static ButtonHandle dpad_down ()
 
static ButtonHandle dpad_left ()
 
static ButtonHandle dpad_right ()
 
static ButtonHandle dpad_up ()
 
static ButtonHandle face_1 ()
 
static ButtonHandle face_2 ()
 
static ButtonHandle face_a ()
 
static ButtonHandle face_b ()
 
static ButtonHandle face_c ()
 
static ButtonHandle face_x ()
 
static ButtonHandle face_y ()
 
static ButtonHandle face_z ()
 
static ButtonHandle guide ()
 
static ButtonHandle hat_down ()
 
static ButtonHandle hat_left ()
 
static ButtonHandle hat_right ()
 
static ButtonHandle hat_up ()
 
static void init_gamepad_buttons ()
 This is intended to be called only once, by the static initialization performed in config_util.cxx. More...
 
static ButtonHandle joystick (int button_number)
 Returns the ButtonHandle associated with the particular numbered joystick button (zero-based), if there is one, or ButtonHandle::none() if there is not. More...
 
static ButtonHandle lgrip ()
 
static ButtonHandle lshoulder ()
 
static ButtonHandle lstick ()
 
static ButtonHandle ltrigger ()
 
static ButtonHandle next ()
 
static ButtonHandle previous ()
 
static ButtonHandle rgrip ()
 
static ButtonHandle rshoulder ()
 
static ButtonHandle rstick ()
 
static ButtonHandle rtrigger ()
 
static ButtonHandle start ()
 
static ButtonHandle trigger ()
 

Detailed Description

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to gamepad buttons.

Definition at line 25 of file gamepadButton.h.

Member Function Documentation

◆ init_gamepad_buttons()

void GamepadButton::init_gamepad_buttons ( )
static

This is intended to be called only once, by the static initialization performed in config_util.cxx.

Definition at line 85 of file gamepadButton.cxx.

References ButtonRegistry::ptr(), and ButtonRegistry::register_button().

Referenced by init_libputil().

◆ joystick()

ButtonHandle GamepadButton::joystick ( int  button_number)
static

Returns the ButtonHandle associated with the particular numbered joystick button (zero-based), if there is one, or ButtonHandle::none() if there is not.

Definition at line 64 of file gamepadButton.cxx.


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