Ganael Laplanche
66e6afb449
Avoid crashing when udev_device_get_parent() returns a NULL pointer
2019-05-29 12:06:07 +02:00
James Turner
01f0f27c84
HID-input: don’t crash when open fails
...
Important since hidraw devices need special permissions on Linux.
2017-12-25 18:13:03 +00:00
Florent Rougon
c325a8d2cd
Fix typos in src/Input/FGLinuxEventInput.cxx
2017-12-23 00:04:21 +01:00
James Turner
216d2328a3
Linux fixes
2017-12-22 14:44:29 -08:00
James Turner
e920dc7509
Event input layer based on HID-Api
...
Thus runs in parallel to the existing implementation on Linux and Mac,
but can (soon) replace the Mac code and will run on Windows eventually.
2017-12-18 17:15:55 +00:00
Thomas Geymayer
39c41eaab9
FGLinuxEventInput: check return value of write.
2013-12-07 13:48:04 +01:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
31995420d3
Guard libudev include with extern "C".
2013-01-30 20:49:50 +00:00
Torsten Dreyer
644bb8c4f4
Spring-cleaning: some minor optimization
...
- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value
2012-03-06 22:28:18 +01:00
ThorstenB
4c17cee5fb
Lower log level for event input/udev messages.
2011-12-09 17:20:28 +01:00
Torsten Dreyer
ded106fe31
event input for Linux: substitude dbus+hal by udev
2011-12-03 22:59:20 +01:00
Torsten Dreyer
2b68bebb5d
namespace std fixes
2011-11-14 15:33:02 +01:00
Torsten Dreyer
ac4d22628e
remove debug message spam
2011-01-21 20:44:35 +01:00
Torsten Dreyer
4e3a2a2c1c
EventInput(Linux): experimental initial read of values
...
First test of reading the button state and axes positions
on initialization of the device.
2011-01-17 20:27:03 +01:00
ThorstenB
8efe895355
Added several include files, thanks to Roland Haeder
...
Added includes missing for some compiler/platform.
2011-01-08 22:34:43 +01:00
Torsten Dreyer
657cd883d7
Compile again, replace clib strXXX with std::string
2010-10-25 14:48:56 +02:00
torsten
26859ad4b9
Non platform specific:
...
- normalize axes events
- handle relative and absolute axes separately in own classes
- ignore tolerance for relative axes, they can fire the same event multiple times which must not be ignored.
2009-10-04 02:02:47 +02:00
torsten
a1a610f7d5
- added support for MAC OSX and initial hotplug support from Tatsuhiro Nishioka
...
- added support for per-device <nasal> <open> and <close>
2009-09-03 00:02:47 +02:00
torsten
b772e5872a
add option <grab/> to the device configuration. If this is set to 'true', the events from this devices are exclusively handled by our handler and are not distributed to other driver(s).
2009-08-23 21:43:10 +02:00
torsten
c672f2aba5
warning fixes
2009-08-23 21:43:09 +02:00
torsten
8cf74b8f2d
Add a debug property to make devices print out incoming events on the console.
2009-08-12 23:45:55 +02:00
torsten
3231561e5a
fixed typo. Thanks m.
2009-08-12 23:45:54 +02:00
torsten
d7eab6061c
be compatible with older kernels
2009-08-12 23:45:54 +02:00
torsten
5c57153e62
Advanced input subsystem - Step3: Adding support for the Linux event devices
2009-08-12 23:45:54 +02:00