Commit Graph

42 Commits

Author SHA1 Message Date
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
Cameron Gutman
4e893bfc83 Fix another race in controller detection 2013-12-30 23:47:20 -06:00
Cameron Gutman
d46a9b4dc0 Don't allow release of a running gamepad 2013-12-30 23:28:45 -06:00
Cameron Gutman
67e626c376 Initial NativeGamepad class 2013-12-30 22:06:16 -06:00
Diego Waxemberg
db0eadf4d7 changed a poorly named variable 2013-12-30 22:19:09 -05:00
Diego Waxemberg
5396ce03ed rewrote gamepad stuff to not use JInput 2013-12-30 22:13:25 -05:00
Cameron Gutman
8bd6a9d07f Merge branch 'master' of github.com:limelight-stream/limelight-pc 2013-12-30 12:13:10 -06:00
Cameron Gutman
17b811771c Add NativeGamepadListener 2013-12-30 12:12:53 -06:00
Diego Waxemberg
60cfb25545 Merge branch 'master' of github.com:limelight-stream/limelight-pc
# By Cameron Gutman
# Via Cameron Gutman
* 'master' of github.com:limelight-stream/limelight-pc:
  Add D-Pad support for 360 controllers. Currently, the 360 D-Pad can only be mapped as D-Pad buttons.
  Terminate the stream when stream frame is closed
2013-12-30 00:36:06 -05:00
Diego Waxemberg
039370d0d0 new fix for rescanning gamepads 2013-12-30 00:34:09 -05:00
Cameron Gutman
e70fb18828 Add D-Pad support for 360 controllers. Currently, the 360 D-Pad can only be mapped as D-Pad buttons. 2013-12-29 22:56:27 -06:00
Diego Waxemberg
73d4721fc2 fixed memory leak caused by creating many DefaultControllerEnvironment objects 2013-12-29 22:56:12 -05:00
Diego Waxemberg
fda7c3bc04 Merge branch 'master' of github.com:limelight-stream/limelight-pc
# By Cameron Gutman (15) and others
# Via Cameron Gutman (2) and Diego Waxemberg (1)
* 'master' of github.com:limelight-stream/limelight-pc:
  Update common jar
  Fix library loading on Windows when not using a JAR
  Delete the extracted libraries when Limelight terminates
  Update common jar
  Write a better native library loader so DLLs are no longer extracted to the current directory on Windows.
  Suppress log spam from jinput on Windows 8 and higher
  Rough Draft of Icon
  Fix settings.lime being created as a directory. See GitHub issue 1 for details.
  Update limelight-common jar
  Use the stream's frame rate as the redraw rate instead of always refreshing at 30 FPS
  Don't print stack traces for InterruptExceptions. Call the NvConnectionListener class to terminate the stream without causing the unexpected termination error dialog.
  Fix resolution changing on Windows. Improve the resolution selection algorithm.
  Only use the audio buffer hack on OS X
  dynamically increase the buffer size if we build up to large of a queue
  Revert "Try to workaround Java's poor OS X mixer"
  Try to workaround Java's poor OS X mixer
  Move audio buffering responsibility onto us and simply fill whatever the runtime gives us

Conflicts:
	src/com/limelight/Limelight.java
	src/com/limelight/binding/audio/JavaxAudioRenderer.java
	src/com/limelight/gui/StreamFrame.java
2013-12-29 13:24:22 -05:00
Diego Waxemberg
3fbaaca9eb fixed javadoc typo 2013-12-29 13:16:19 -05:00
Diego Waxemberg
2b7629398b Added javadoc to gamepad classes 2013-12-29 13:01:25 -05:00
Diego Waxemberg
a2c1164450 added javadoc to input classes 2013-12-29 12:29:58 -05:00
Cameron Gutman
fcbc80c05c Suppress log spam from jinput on Windows 8 and higher 2013-12-28 16:40:44 -05:00
Diego Waxemberg
2c3ed99a3a Removed deprecated method and renamed some classes. Created a new package to separate gamepad classes from keyboard/mouse classes 2013-12-27 10:08:31 -05:00
Diego Waxemberg
bc79e1ee06 changed gamepad preferences a bunch
- no longer have ControllerComponent provide the swing elements
- renamed GamepadMapping methods to make more sense
- GamepadConfigFrame now uses a grid layout and has some nice borders
2013-12-24 18:59:07 -05:00
Diego Waxemberg
e7e87825ad renamed gamepad config page, No longer shit bricks if the gamepad disconnects while trying to map. Now rescans for gamepads 2013-12-22 11:12:43 -05:00
Diego Waxemberg
81c8a09385 fixed invert and trigger settings not being saved 2013-12-21 00:07:32 -05:00
Diego Waxemberg
f3f52f9616 fixed typo that broke right stick on gamepads 2013-12-20 23:30:31 -05:00
Diego Waxemberg
bef355487d fixed up gamepad mapping a bit. added options to invert and to act as a trigger 2013-12-20 23:13:18 -05:00
Diego Waxemberg
ba0b84f9e5 more gamepad changes
- now have a menu bar to access settings
- now handle user input to assign mappings
- fixed some typos
- now properly shutdown controller threads on exit
- renamed GamepadSettings to GamepadMapping
- created a lock to ensure we do not add/remove gamepads from the list while we are handling their events
- fixed settings directory booch
2013-12-20 13:00:30 -05:00
Diego Waxemberg
43df4cf93e more gamepad stuff
- now have settings files
- now read/write gamepad settings to file
- now map button/axis for gamepads
2013-12-19 20:31:33 -05:00
Diego Waxemberg
6ea16c6283 more controller stuff
-new controller listener to be a singleton thread that listens for controller input even when not streaming, then sends input when streaming.\
-main frame will stop controller listener when closing
-gamepads should now use the gamepad config settings (WIP)
2013-12-19 18:57:33 -05:00
Diego Waxemberg
c32d7a1c22 Work in progress: fixing gamepad to work on all OSs and be customizable 2013-12-19 17:31:14 -05:00
Aaron Neyer
fed46a2a49 move everything out of subdirectory 2013-12-15 14:13:32 -05:00