bzar
A Commando
During the weekend I made a small doodad that might be of use to some of the developers here. Maybe others too, who knows?
I call the contraption inputty and it's in some barely usable state in github.
The point of inputty is to read evdev events and/or create uinput devices. It's all quite easily configurable using a QML file. You just describe the input and output devices with elements and wire them together using Qt's signal/slot system and tiny sparkles of JavaScript.
I actually made this to fake Pyra's input events on my desktop by wiring a gamepad to produce them, but it can be used for all sorts of stuff, like faking pyra controls on a devboard, faking pandora controls on a desktop, making three joysticks function as a keyboard or simulate an analog nub with your mouse.
I haven't added support for all input event types yet so no blinking LEDs using your last touch screen tap position as input, but it's just boilerplate handling that needs adding. If anyone has an actual use case for those I can add them.
The interface is currently a built-in QML file, but I intend to make this more of a tool to run such QML files. The current file (at the time I'm writing this, at least) shows a list of input devices available on the system and lets the user pick one. That device is then interpreted like a game pad (namely a WiiU pro controller I used while making it) and used to create pandora's game controls as input devices. Works on PNDManager, at least
I'm a bit surprised how well this worked
I call the contraption inputty and it's in some barely usable state in github.
The point of inputty is to read evdev events and/or create uinput devices. It's all quite easily configurable using a QML file. You just describe the input and output devices with elements and wire them together using Qt's signal/slot system and tiny sparkles of JavaScript.
I actually made this to fake Pyra's input events on my desktop by wiring a gamepad to produce them, but it can be used for all sorts of stuff, like faking pyra controls on a devboard, faking pandora controls on a desktop, making three joysticks function as a keyboard or simulate an analog nub with your mouse.
I haven't added support for all input event types yet so no blinking LEDs using your last touch screen tap position as input, but it's just boilerplate handling that needs adding. If anyone has an actual use case for those I can add them.
The interface is currently a built-in QML file, but I intend to make this more of a tool to run such QML files. The current file (at the time I'm writing this, at least) shows a list of input devices available on the system and lets the user pick one. That device is then interpreted like a game pad (namely a WiiU pro controller I used while making it) and used to create pandora's game controls as input devices. Works on PNDManager, at least
I'm a bit surprised how well this worked
Last edited by a moderator: