14 #ifndef EVDEVINPUTDEVICE_H 15 #define EVDEVINPUTDEVICE_H 19 #ifdef PHAVE_LINUX_INPUT_H 21 class LinuxInputDeviceManager;
28 class EXPCL_PANDA_DEVICE EvdevInputDevice :
public InputDevice {
30 EvdevInputDevice(LinuxInputDeviceManager *manager,
size_t index);
31 virtual ~EvdevInputDevice();
33 bool reactivate_steam_controller();
36 virtual void do_set_vibration(
double strong,
double weak);
37 virtual void do_poll();
40 bool process_events();
43 LinuxInputDeviceManager *_manager;
61 int _dpad_left_button;
71 DeviceClass device_class = DeviceClass::unknown,
78 static void init_type() {
79 InputDevice::init_type();
81 InputDevice::get_class_type());
84 return get_class_type();
86 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
94 #endif // PHAVE_LINUX_INPUT_H 96 #endif // EVDEVINPUTDEVICE_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.
TypeHandle is the identifier used to differentiate C++ class types.