Пример #1
0
AxisEventPtr
AxisEvent::create_abs(int device_id, int code, int min, int max, int fuzz, int flat)
{
  return AxisEventPtr(new AxisEvent(new AbsAxisEventHandler(UIEvent::create(device_id, EV_ABS, code),
                                                            min, max, fuzz, flat),
                                    min, max));
}
Пример #2
0
AxisEventPtr
AxisEventFactory::create_abs(int device_id, int code, int min, int max, int fuzz, int flat)
{
  return AxisEventPtr(new AxisEvent(new AbsAxisEventHandler(m_uinput, m_slot, m_extra_devices,
                                                            UIEvent::create(static_cast<uint16_t>(device_id),
                                                                            EV_ABS, code),
                                                            min, max, fuzz, flat),
                                    min, max));
}
Пример #3
0
AxisEventPtr
AxisEvent::create_rel(int device_id, int code, int repeat, float value)
{
  return AxisEventPtr(new AxisEvent(new RelAxisEventHandler(device_id, code, repeat, value)));
}
Пример #4
0
AxisEventPtr
AxisEvent::invalid()
{
  return AxisEventPtr();
}
Пример #5
0
AxisEventPtr
AxisEventFactory::create_rel(int device_id, int code, int repeat, float value)
{
  return AxisEventPtr(new AxisEvent(new RelAxisEventHandler(m_uinput, m_slot, m_extra_devices,
                                                            device_id, code, repeat, value)));
}
Пример #6
0
AxisEventPtr
AxisEventFactory::invalid() 
{ 
  return AxisEventPtr();
}