Commit graph

84 commits

Author SHA1 Message Date
Jules Blok
9420706fb2 InputManager: Remove plans to support Prop_SupportedButtons_Uint64.
It's not reliable.
2017-12-22 17:00:53 +01:00
Jules Blok
b340d48e72 InputManager: Only query the axis type when changed. 2017-12-22 16:59:09 +01:00
Jules Blok
4b4192b284 InputManager: Cache axis type names. 2017-12-22 16:41:11 +01:00
Jules Blok
ff0b0139b5 InputManager: Add a mutex for thread-safety. 2017-12-22 16:29:51 +01:00
Jules Blok
de3d2dcaa9 InputManager: Cache the button names. 2017-12-22 16:28:38 +01:00
Jules Blok
ad4341f566 default.lua: Add Knuckles support. 2017-12-21 18:17:58 +01:00
Jules Blok
57f7718b62 InputManager: Remember the last state. 2017-12-18 19:07:48 +01:00
Jules Blok
00fcd5fb3d InputManager: Add LUA time global to replace os.clock(). 2017-12-18 19:06:04 +01:00
Jules Blok
0653ca4b3f InputManager: That is not a number. 2017-12-18 19:04:53 +01:00
Jules Blok
d2fea850c7 InputManager: Don't pop the error handler. 2017-12-18 19:04:24 +01:00
Jules Blok
af652ec048 InputManager: Give each controllers its own LUA state. 2017-12-18 19:03:19 +01:00
Jules Blok
0388fba71f InputManager: Implement LUA error handling. 2017-12-14 23:51:33 +01:00
Jules Blok
e5b46cdf78 InputManager: Fix lua library loading. 2017-12-14 22:39:12 +01:00
Jules Blok
1abc9b4771 InputManager: Fix compiler warnings. 2017-12-13 16:48:52 +01:00
Jules Blok
91ab83ae34 SettingsManager: Use snprintf instead of sstream. 2017-12-13 16:20:57 +01:00
Jules Blok
ae9a8f7457 InputManager: Support loading external input scripts. 2017-12-12 19:13:46 +01:00
Jules Blok
303399d324 InputManager: Move the lua state to the controllers. 2017-12-07 16:09:04 +01:00
Jules Blok
295b09577f SettingsManager: Implement settings reloading using events. 2017-12-07 03:57:00 +01:00
Jules Blok
5e9f26b890 InputManager: Refactor the scripting code. 2017-12-06 18:24:07 +01:00
Jules Blok
1adeb460c7 InputManager: Separate the header from the input script. 2017-12-06 18:24:07 +01:00
Jules Blok
1db97bf7ae Revive: Use a LUA script for touch controller mapping. 2017-12-06 18:24:07 +01:00
Jules Blok
1fcee925ab InputManager: Cache the VsyncToPhotons property. 2017-08-28 21:38:34 +02:00
Jules Blok
1d499e7279 Revive: Rewrite timing and prediction code. 2017-08-25 14:01:38 +02:00
Jules Blok
3402ff441f InputManager: Temporarily disable XInput support. 2017-08-24 14:27:19 +02:00
Jules Blok
632d84cfb7 Session: Update device descriptions from an event loop. 2017-08-24 14:26:56 +02:00
Jules Blok
0a4fc2fbdc Update to Oculus SDK 1.17 2017-08-21 20:46:30 +02:00
Jules Blok
076b0d1c70 CompositorBase: Move tracking origin back to session. 2017-08-21 02:58:14 +02:00
Jules Blok
3b2b019737 CompositorBase: Account for the seated tracking origin when submitting the render pose. 2017-08-20 14:29:19 +02:00
Jules Blok
a9c9dab4fe SettingsManager: Move settings to a separate class with loading on a thread. 2017-08-18 15:00:09 +02:00
Jules Blok
b813e7d127 InputManager: Fix "wait in tracking state" hack. 2017-08-17 23:36:30 +02:00
Jules Blok
7553e8f978 InputManager: Don't set the tracking origin in the compositor.
This properly fixes chaperone visibility issues.
2017-08-17 23:34:24 +02:00
Jules Blok
2c8e4bd95d InputManager: Keep the grip button as a modifier, but swap the triggers like before. 2017-07-23 15:16:26 +02:00
Jules Blok
30fa369ffb InputManager: Bind Menu button to both Application buttons. 2017-07-23 02:45:45 +02:00
Jules Blok
9d407c7045 InputManager: Disable TriggerAsGrip when the grip button is pressed.
This is practically the best of both worlds.
2017-07-23 02:45:10 +02:00
Jules Blok
5a3bd4bb18 Merge pull request #699 from GiantSox/master
Use TriggerAsGrip property to toggle swapped mode
2017-07-23 02:21:06 +02:00
David Goodman
c29ed6f2ef Use TriggerAsGrip property to toggle swapped mode 2017-07-21 19:31:02 -07:00
Jules Blok
c1733a04d1 InputManager: Only give a thumbs-up if the grip button is pressed.
This prevents Jason Rubin from figuring out who is using a Vive headset.
2017-07-22 01:00:30 +02:00
Jules Blok
628730a02e Revert "InputManager: Allow the entire touchpad to be used as a thumbstick."
This reverts commit b73a413518.
2017-06-21 14:24:19 +02:00
Jules Blok
a31b681fa9 InputManager: Also use the touched state from the physical buttons. 2017-05-21 13:52:47 +02:00
Jules Blok
872a3a0290 InputManager: Don't emulate other buttons on the trackpad if they are supported as physical buttons. 2017-05-21 13:47:39 +02:00
Jules Blok
c572bb0d14 InputManager: Check if XInput loaded correctly. 2017-05-12 20:42:00 +02:00
Jules Blok
6eac386fbe InputManager: Load XInput separately.
The InputManager doesn't really care where the XInput module comes from.
2017-05-11 23:05:24 +02:00
Jules Blok
1b8ab3c2d9 InputManager: Add support for controllers with physical thumbsticks/buttons.
Also do some various cleanup and fixes to the mapping.
2017-05-10 12:29:07 +02:00
Jules Blok
1eaeda61cf InputManager: Use the last pose to calculate the acceleration.
Also apply the consistent hemisphere to all poses.
2017-04-18 14:41:23 +02:00
Jules Blok
94dda1f0ff InputManager: Ensure the entire dot product stays positive.
This really fixes Oculus Medium this time.
2017-04-17 14:06:28 +02:00
Jules Blok
1655efedd4 InputManager: Fix rotation issue in Oculus Medium. 2017-04-16 18:53:07 +02:00
Jules Blok
b8e603b5ba InputManager: Return the most recent pose if absTime is 0. 2017-04-16 02:10:24 +02:00
Jules Blok
b73a413518 InputManager: Allow the entire touchpad to be used as a thumbstick. 2017-04-14 01:38:28 +02:00
Jules Blok
08df8fd600 Rename Common to Session.
All declarations not related to the session have been cleaned up.
2017-04-13 03:53:35 +02:00
Jules Blok
1c40850287 Common: Move texture structs to TextureBase. 2017-04-13 03:48:18 +02:00