14 #ifndef LINUXJOYSTICKDEVICE_H 15 #define LINUXJOYSTICKDEVICE_H 19 #ifdef PHAVE_LINUX_INPUT_H 21 class LinuxInputDeviceManager;
27 class EXPCL_PANDA_DEVICE LinuxJoystickDevice :
public InputDevice {
29 LinuxJoystickDevice(LinuxInputDeviceManager *manager,
size_t index);
30 virtual ~LinuxJoystickDevice();
32 bool check_events()
const;
35 virtual void do_poll();
38 bool process_events();
41 LinuxInputDeviceManager *_manager;
49 int _dpad_left_button;
61 static void init_type() {
62 InputDevice::init_type();
64 InputDevice::get_class_type());
73 #endif // PHAVE_LINUX_INPUT_H 75 #endif // LINUXJOYSTICKDEVICE_H void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(), along with zero to four record_derivation()s.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.