14 #ifndef LINUXJOYSTICKDEVICE_H 15 #define LINUXJOYSTICKDEVICE_H 19 #ifdef PHAVE_LINUX_INPUT_H 21 class LinuxInputDeviceManager;
29 class EXPCL_PANDA_DEVICE LinuxJoystickDevice :
public InputDevice {
31 LinuxJoystickDevice(LinuxInputDeviceManager *manager,
size_t index);
32 virtual ~LinuxJoystickDevice();
34 bool check_events()
const;
37 virtual void do_poll();
40 bool process_events();
43 LinuxInputDeviceManager *_manager;
51 int _dpad_left_button;
63 static void init_type() {
64 InputDevice::init_type();
66 InputDevice::get_class_type());
75 #endif // PHAVE_LINUX_INPUT_H 77 #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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.