14 #ifndef EVDEVINPUTDEVICE_H 15 #define EVDEVINPUTDEVICE_H 19 #ifdef PHAVE_LINUX_INPUT_H 21 class LinuxInputDeviceManager;
30 class EXPCL_PANDA_DEVICE EvdevInputDevice :
public InputDevice {
32 EvdevInputDevice(LinuxInputDeviceManager *manager,
size_t index);
33 virtual ~EvdevInputDevice();
35 bool reactivate_steam_controller();
38 virtual void do_set_vibration(
double strong,
double weak);
39 virtual void do_poll();
42 bool process_events();
45 LinuxInputDeviceManager *_manager;
63 int _dpad_left_button;
73 DeviceClass device_class = DeviceClass::unknown,
80 static void init_type() {
81 InputDevice::init_type();
83 InputDevice::get_class_type());
86 return get_class_type();
88 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
96 #endif // PHAVE_LINUX_INPUT_H 98 #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(),...
TypeHandle is the identifier used to differentiate C++ class types.