Commit Graph

77 Commits

Author SHA1 Message Date
Cameron Gutman
b8213276dc Fix analog stick axis overflow issue causing full positive axis input to invert on Xbox 360 controllers 2015-02-19 20:31:07 -05:00
Cameron Gutman
5b20f16d44 Reset the watch key after processing events. watckKey -> watchKey 2015-02-19 19:38:08 -05:00
Cameron Gutman
7f580a9cc0 Merge branch 'master' of github.com:cgutman/limelight-pi 2015-02-19 19:28:05 -05:00
Cameron Gutman
a695b4f3e3 Correctly fetch more than one watcher event list 2015-02-19 19:27:29 -05:00
Cameron Gutman
ff344cfc30 Add support for multiple controllers 2015-02-19 18:49:53 -05:00
Iwan Timmer
545c3397db Correct handling of triggers 2015-02-18 17:07:34 +01:00
Iwan Timmer
e6ec6ad640 Fix indention in EvdevHandler 2015-02-16 17:00:35 +01:00
Iwan Timmer
a2a1df4ce3 Add key modifiers to support shift, ctrl and alt 2015-02-08 21:10:00 +01:00
Iwan Timmer
12d441b493 Use blocking for input reader 2015-01-04 20:30:26 +01:00
Iwan Timmer
d442c10746 Reverse correctly mapped 2014-10-31 16:46:24 +01:00
Iwan Timmer
8f27977374 Warn on non-evdev devices 2014-10-25 17:07:18 +02:00
Iwan Timmer
597b4a48db Handle deadzone better 2014-10-24 16:47:22 +02:00
Iwan Timmer
1efeb4a8c4 Don't stop sending gamepad packets after receiving non mapped event 2014-09-22 12:38:45 +02:00
Iwan Timmer
e2393d1336 Little cleanup EvdevHandler code 2014-09-22 12:30:54 +02:00
Cameron Gutman
506eafbddc Optimize Evdev input by sending axis and controller events only after EV_SYN comes in. Implement support for vertical mouse scrolling. 2014-09-15 00:50:35 -07:00
Iwan Timmer
8fdf4c7260 Easth must be east in Gamepad mapper 2014-09-13 23:07:38 +02:00
Iwan Timmer
22f1ac695c Update Limelight-common 2014-09-04 13:08:11 +02:00
Iwan Timmer
47f5a03fa7 Create mapping files 2014-08-26 20:29:55 +02:00
Iwan Timmer
48214474bb Don't send controller input when receiving non mapped event 2014-08-20 21:45:53 +02:00
Iwan Timmer
74b8c287c0 Only show error when no single input could be readed 2014-05-29 20:53:29 +02:00
Iwan Timmer
5213e1c2df Use correct ranges for d-pad 2014-05-23 16:36:06 +02:00
Iwan Timmer
f2c3af83f4 Ranges right converted to short or byte value in gamepad code 2014-05-23 16:16:19 +02:00
Iwan Timmer
16badc4f99 Rename throttle and rudder to z and rz 2014-04-10 16:30:38 +02:00
Iwan Timmer
94a8fed2f1 Support analog d-pad out of the box 2014-04-10 16:20:09 +02:00
Iwan Timmer
cecc72dbf0 Extra key mappings 2014-04-10 16:12:15 +02:00
Iwan Timmer
2b395c8968 Take flat range into considoration 2014-04-10 16:06:02 +02:00
Iwan Timmer
1548ca9af1 Check maximum value in EvdevAbsolute 2014-04-10 16:05:01 +02:00
Cameron Gutman
8c97f73f6a Fix several keys: - = [ ] \ ; ' , / 2014-04-09 14:46:50 +02:00
Iwan Timmer
3ec5066b08 Watch changes in connected inputs 2014-03-31 16:52:06 +02:00
Iwan Timmer
230a041621 Removing input device no longer a error 2014-03-28 16:28:20 +01:00
Iwan Timmer
24b201856f Revert "Adjusted short and byte scaling and reversal in EvdevAbsolute and accounting for signed and unsigned input"
Patch don't take minimum values into account

This reverts commit 12efe3b5a3.
2014-03-19 19:53:41 +01:00
Iwan Timmer
e43ac64e5a Use hex instead of decimal in EvdevConstants 2014-03-19 19:53:02 +01:00
admiralmachado
821ad6fe5e Adjusted short and byte scaling and reversal in EvdevAbsolute and accounting for signed and unsigned input 2014-03-11 21:26:32 +01:00
admiralmachado
06fb196b6a Added deadzone for left/right sticks 2014-03-11 21:22:44 +01:00
admiralmachado
161175b866 Handle "--trigger-as-button" option from xboxdrv 2014-03-11 21:15:46 +01:00
Iwan Timmer
5701a7f916 Reverse Y axis 2014-02-02 13:24:33 +01:00
Iwan Timmer
61a2c8abad Possible to reverse directions in gamepad mapping 2014-01-28 14:49:58 +01:00
Iwan Timmer
07c6c55577 Suport for Dpads which use absolute values in evdev 2014-01-28 14:42:13 +01:00
Iwan Timmer
dc97bc9cf0 Use range from evdev device for gamepad input 2014-01-28 01:34:45 +01:00
Iwan Timmer
da61fb6ed6 It's east not easth 2014-01-22 15:58:20 +01:00
Christian Schwartz
ad692bead2 Assigned mapping parameter to instance variable, preventing NullPointerException during parseEvent 2014-01-21 19:00:02 +00:00
Iwan Timmer
78452d7b82 Gamepad mapping configurable 2014-01-19 13:59:02 +01:00
Iwan Timmer
dd10c8940b Initial support for gamepads 2014-01-19 13:38:59 +01:00
Iwan Timmer
38540d715c Cleanup code 2014-01-11 23:53:08 +01:00
Iwan Timmer
1cdb88c2a0 Better error messaging when input can't be used 2014-01-08 22:26:03 +01:00
Iwan Timmer
392da3cc59 Remove Gamepad from limelight-pc 2014-01-08 21:48:44 +01:00
Iwan Timmer
60d45af884 EvdevHandler also working on 32-bit (like the Raspberry Pi) 2014-01-07 22:45:16 +01:00
Iwan Timmer
7e03e40825 Replace keyboard and mouse handler with evdev 2014-01-07 20:55:41 +01:00
Diego Waxemberg
633debeddd reimplemented the trigger checkbox 2014-01-01 21:34:00 -05:00
Cameron Gutman
77c3c23c64 Make SourceComponent serializable 2013-12-30 23:52:21 -06:00