Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

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

Open
sro5h opened this issue Jan 26, 2018 · 0 comments
Open

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

sro5h opened this issue Jan 26, 2018 · 0 comments

Comments

@sro5h
Copy link

sro5h commented Jan 26, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant