jkuhlmann / gainput

Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
http://gainput.johanneskuhlmann.de/
MIT License
858 stars 103 forks source link

Can i create an InputDevice to get raw input on linux without X11? #49

Open sro5h opened 6 years ago

sro5h commented 6 years ago

I tried to create a raw InputDeviceMouse with:

gainput::InputManager manager;
const auto id = manager.CreateDevice<gainput::InputDeviceMouse>(gainput::InputDevice::DV_RAW);
gainput::InputMap map(manager);
map.MapFloat(MouseX, id, gainput::MouseAxisX);

But both map.GetFloat(MouseX) and map.GetFloatDelta(MouseX) always return 0.