Brad Davis
07562f72af
Doing a pass over the input plugins and controller code
2016-05-20 14:50:23 -07:00
Anthony J. Thibault
09a4e0eaa8
Fix for vive controllers sometimes not working
...
* Fixed bug with input devices that where added, removed then re-added.
The default mappings were being ignored on the second add.
* Fixed potential crash when hardware inputPlugin device poses were polled from the JavaScript thread
by taking the UserInputManager lock during pluginUpdate.
* Renamed Controller.Hardware.Vive.LB & RB to LeftGrip and RightGrip, to better match Oculus touch.
* Updated resource/controller/vive.json to reflect this new mapping.
* Exposed touch pad capacitive touch events to JavaScript as
Controller.Hardware.Vive.LSTouch and RSTouch.
* Added viveTouchpadTest.js script to test LSTouch and RSTouch events.
2016-05-10 19:32:08 -07:00
Triplelexx
3501749896
attempt at resolving build warning
...
make both values operated on double before casting
2016-04-05 00:37:14 +01:00
Triplelexx
b5d50e8b3f
attempt at resolving build warnings
...
make both values operated on double before casting
2016-04-05 00:35:12 +01:00
Brad Davis
28103cf5ef
Migrate composition of the overlay and pointer to the present thread
2016-03-07 17:14:41 -08:00
Triplelexx
949eab62ec
Merge remote-tracking branch 'refs/remotes/highfidelity/master' into 20769
...
# Conflicts:
# libraries/input-plugins/src/input-plugins/KeyboardMouseDevice.cpp
removed deviceID
2016-02-21 22:04:14 +00:00
Triplelexx
742f741095
update TouchscreenDevice again
...
added passing of inputCalibrationData missed from last commit
2016-02-21 21:27:21 +00:00
Triplelexx
b291e32b7c
update TouchscreenDevice
...
pass inputCalibrationData to update
2016-02-19 13:54:13 +00:00
Triplelexx
9db45c01cc
indentation fixes
...
caught some inconsistencies
2016-02-19 13:47:41 +00:00
Triplelexx
087e2e7f66
revise touchscreen camera control manipulation
...
Touchscreen camera control is now via a touchscreen device. Input must
be enabled with the menu option. Currently supports dragging and
gesturing to control avatar camera. Gesturing is handled by integration
of the Qt implementation.
2016-02-19 13:47:28 +00:00
Brad Hefta-Gaub
8b8b99c7e0
HMD mouse checkpoint
2016-02-17 21:19:01 -08:00
Anthony J. Thibault
111ed65bf8
Controller Pose values are relative to Avatar.
...
Pass a InputCalibrationData to each inputPlugin and inputDevice.
This contains the most up sensorToWorldMatrix, avatarMat and hmdSensorMatrix.
Each input plugin can use this data to transform it's poses into Avatar space
before sending it up the chain.
This fixes a bug in the handControllerGrab.js script that relied on the hand controller
rotation/positions being in the avatar frame.
2016-02-11 17:18:01 -08:00
Brad Hefta-Gaub
dfba05ae5f
CR feedback
2016-01-11 11:07:07 -08:00
Brad Hefta-Gaub
e2a3903def
add support for advanced/developer plugins and change diplay modes to match spec
2016-01-08 16:58:25 -08:00
Brad Hefta-Gaub
3dcdfbc0f1
first cut at simulating mouse/reticle behavior with input contorllers
2015-12-15 13:59:22 -08:00
Brad Davis
98263f0c0d
Moving sdl2 to external plugin
2015-12-10 14:56:41 -08:00
Brad Davis
645695d5d5
Moving sixense to external plugin
2015-12-10 10:44:23 -08:00
Bradley Austin Davis
5053fcd113
Fix unix builds
2015-12-10 10:19:13 -08:00
Brad Hefta-Gaub
3499b452f8
add back SDL and Sixense
2015-12-10 09:02:13 -08:00
Brad Hefta-Gaub
1da8f6e618
Merge pull request #6605 from hyperlogic/tony/sixense-manager-debug-draw
...
SixenseManager: Added debug draw options
2015-12-10 07:48:35 -08:00
Brad Davis
978d39b7f4
Moving OpenVR to external plugin and updating to latest version
2015-12-09 16:20:24 -08:00
Anthony J. Thibault
a57a2792a4
SixenseManager: Added debug draw options
...
These debug draw options were added to help debug rare intermittent issues with
configuration the hydra and the Avatar arm IK.
2015-12-09 15:17:06 -08:00
Atlante45
1d498af76e
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-12-04 15:18:25 -08:00
Brad Davis
60aa93c38c
Fixing menu items in display plugins
2015-12-04 10:28:19 -08:00
Stephen Birarda
666c76073a
Merge branch 'baseball' of https://github.com/Atlante45/hifi into baseball
2015-11-13 14:48:15 -08:00
Stephen Birarda
ef778c554c
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-11-12 10:40:51 -08:00
Brad Hefta-Gaub
4fddc86851
tweaks to click
2015-11-11 15:26:16 -08:00
Atlante45
ce57488b9f
cleanup dead code
2015-11-10 17:14:38 -08:00
Brad Hefta-Gaub
fc3602d780
change context menu to RightPrimaryThumb, add filter to mouse click to not count slow clicks
2015-11-10 16:46:58 -08:00
Atlante45
7050139a56
Bit of code cleanup
2015-11-10 13:41:19 -08:00
Atlante45
6a53021818
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-11-09 13:23:31 -08:00
Brad Davis
07be03dc7e
Bad merge fix, PR feedback
2015-11-09 09:30:18 -08:00
Brad Davis
2ecc4f8a5c
Prevent sixense manager from triggering continuous reset
2015-11-09 09:16:32 -08:00
Atlante45
68a72b0f41
Bit of cleanup
2015-11-06 17:28:51 -08:00
Atlante45
137a2c1c48
Fix file headers
2015-11-06 17:15:34 -08:00
Atlante45
6323728d7a
Added perfect forwarding of arguments
2015-11-06 16:56:48 -08:00
Atlante45
d95709ee73
Added input plugins logging category
2015-11-06 16:45:23 -08:00
Atlante45
0a65bb145b
Some more code cleanup
2015-11-06 16:44:28 -08:00
Atlante45
6ad20e417b
Typo
2015-11-06 16:33:36 -08:00
Atlante45
e3b54f0272
Cleanup
2015-11-06 16:33:29 -08:00
Atlante45
503e03d4a8
Remove unused using
2015-11-06 16:33:22 -08:00
Atlante45
96aa5be457
Implement all Sixense methods for OS X
2015-11-06 16:33:16 -08:00
Atlante45
298ac650d8
Isolate sixense dynamic linking for OSX
2015-11-06 16:33:07 -08:00
Brad Davis
bf70ae4724
PR feedback
2015-11-06 15:59:13 -08:00
Brad Davis
7c433f47c0
Breaking up input devices and input plugins classes.
2015-11-06 15:20:00 -08:00
Atlante45
55c6706f76
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-11-06 13:31:39 -08:00
Atlante45
e630f3072e
Bit of cleanup
2015-11-06 11:14:10 -08:00
Atlante45
c1029450d9
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-11-05 15:14:15 -08:00
Anthony J. Thibault
50e8f49f52
SpacemouseManager Moved stub init into cpp file.
...
This should fix the windows build. For some reason
the linker was having a problem resolving this.
2015-11-05 10:56:24 -08:00
Anthony J. Thibault
8d16f60b15
Removed hardcoded define HAVE_3DCONNEXIONCLIENT
...
This should be set from cmake, right?
2015-11-05 09:02:39 -08:00
Anthony J. Thibault
d9f4b0218e
Merge branch 'master' into tony/mac-fixes
2015-11-05 08:26:44 -08:00
EdgarPironti
ade0862948
Spacemouse fixes
2015-11-04 00:49:40 -08:00
EdgarPironti
7adf38f781
Spacemouse migration
2015-11-03 18:22:55 -08:00
Atlante45
eb990c9c1c
More basebal test code
2015-11-03 17:45:01 -08:00
Atlante45
9be8d1edf9
Remove now unecessary vive hack
2015-11-03 11:44:33 -08:00
Atlante45
0508091130
Rebase fixes
2015-11-03 11:37:57 -08:00
Clément Brisset
c63fc8557c
More baseball test code
2015-11-03 11:14:59 -08:00
Ryan Huffman
ccb25f4b63
Merge branch 'master' of https://github.com/highfidelity/hifi into baseball
2015-11-03 11:10:45 -08:00
Atlante45
f2ff0b40f7
Merge branch 'master' of https://github.com/highfidelity/hifi
2015-11-03 11:06:19 -08:00
Clément Brisset
31d92fd90a
Baseball test code
2015-11-03 11:00:35 -08:00
EdgarPironti
5d695da630
Do not merge - Spacemouse
2015-11-02 23:31:10 -08:00
Brad Hefta-Gaub
d9dd045886
better parameter name
2015-11-02 09:29:09 -08:00
Brad Hefta-Gaub
c3a78ed151
cleanup
2015-11-02 09:27:35 -08:00
Brad Hefta-Gaub
b00f572e1a
add mouseClicked inputs vs mouseButton inputs, make right-click work without right button drag
2015-11-02 09:21:15 -08:00
Brad Hefta-Gaub
fe4a6fa2bf
Merge branch 'master' of https://github.com/highfidelity/hifi into fixWarnings
2015-11-01 15:01:30 -08:00
Brad Hefta-Gaub
4a08329d22
fix unix warnings for comparing enums to enums
2015-11-01 12:10:42 -08:00
Brad Davis
cfb2fd1523
Support for runtime plugins (DLLs)
2015-11-01 11:12:12 -08:00
Brad Hefta-Gaub
05dea847be
add Actions.CycleCamera and wire up secondary thumb buttons to Actions.CycleCamera and Actions.ContextMenu
2015-10-31 15:47:40 -07:00
Brad Hefta-Gaub
b877f832a9
fix SDL joysticks
2015-10-31 13:02:17 -07:00
Bradley Austin Davis
0355a37fb1
Fixing SDL2 active/inactive value
2015-10-30 22:19:44 -07:00
Bradley Austin Davis
9b9e35d396
Limit sixense to mavericks and below
2015-10-30 22:02:20 -07:00
AlessandroSigna
b8a2fcbb2c
Vive controller - fix inverted inputs
2015-10-30 15:21:48 -07:00
Brad Hefta-Gaub
b2f27054f4
Merge pull request #6239 from AlessandroSigna/controllers
...
ViveController - input mapping
2015-10-30 10:39:26 -07:00
Brad Davis
9607812116
Fixing input plugin dependencies
2015-10-30 10:18:51 -07:00
Brad Davis
49e7d42c2c
Merge remote-tracking branch 'upstream/master' into HEAD
2015-10-30 10:07:40 -07:00
Brad Davis
fcfab0fc51
Moving SDL2, Sixense and Faceshift to external projects
2015-10-30 00:57:51 -07:00
AlessandroSigna
01d3805148
ViveController - mapping of buttons
2015-10-29 18:44:43 -07:00
AlessandroSigna
ffd2b39874
Fix vive controller - update to new input plugin register
2015-10-29 13:18:37 -07:00
Brad Hefta-Gaub
851460b2bd
fix build buster for SDL2 missing builds
2015-10-29 11:26:11 -07:00
Brad Hefta-Gaub
ed87ae3d5a
remove some debugging
2015-10-29 10:57:30 -07:00
Brad Hefta-Gaub
bab2a7d80f
Merge branch 'controllers' of https://github.com/highfidelity/hifi into hardwareChanged
...
Conflicts:
libraries/input-plugins/src/input-plugins/SixenseManager.cpp
libraries/input-plugins/src/input-plugins/ViveControllerManager.cpp
2015-10-29 10:56:01 -07:00
Brad Hefta-Gaub
a3cd032a41
register/remove devices when the input plugins are activated/deactivated
2015-10-29 10:06:21 -07:00
Brad Davis
c4e82a85d9
Remove DeviceProxy in favor of InputDevice
2015-10-29 09:32:56 -07:00
Brad Davis
b8f189dea7
Fixing hydras
2015-10-27 16:37:16 -07:00
Brad Davis
ef2d71e576
Merge remote-tracking branch 'upstream/master' into HEAD
...
Conflicts:
libraries/input-plugins/src/input-plugins/SixenseManager.cpp
2015-10-27 09:41:58 -07:00
howard-stearns
cbade6a095
Do not shut down hydra when it says there are no devices. Count to
...
allowedHydraFailures in settings.
2015-10-26 19:27:22 -07:00
Brad Davis
b2c3311947
Merge pull request #6174 from samcake/controllers
...
Controllers : Adding a moving average for the velocity field returned by the Hydra controller
2015-10-26 13:46:32 -07:00
samcake
a8872d065b
MOve the movingAverage class to shared next to SimpleMovingAverage
2015-10-26 11:23:13 -07:00
Brad Davis
f38303a9a5
Adding vive default mapping
2015-10-26 10:36:31 -07:00
samcake
d400c694f6
Cleaning up for release
2015-10-23 18:09:54 -07:00
samcake
be843a0035
adding a rnning average on the velocity values returned by the hydra and adding a simple js to test
2015-10-23 17:32:54 -07:00
samcake
f14a321d03
Adding a amoving Average for the velocity of the hydra
2015-10-23 15:03:04 -07:00
samcake
2db87e0d2d
Remove hydramove.js and expose the velocity and angular Velocity for hydra
2015-10-22 15:55:36 -07:00
Brad Hefta-Gaub
8772b5dbf2
Merge pull request #6143 from jherico/controllers
...
Controllers Branch - Cleanup of enums and JS names
2015-10-21 16:24:30 -07:00
Brad Hefta-Gaub
63e6452630
fix hydra left right arm flip
2015-10-21 16:17:58 -07:00
Brad Hefta-Gaub
9b11b2091f
fix hydra left right arm flip
2015-10-21 16:17:11 -07:00
Brad Davis
4a1df286fd
Cleanup of enums and JS names
2015-10-21 15:57:37 -07:00
Brad Davis
84e2ace0ea
Prevent crash on connecting gamepad
2015-10-21 12:57:48 -07:00
Brad Davis
de57c3b4d6
Merge remote-tracking branch 'upstream/controllers' into controllers
...
Conflicts:
libraries/controllers/src/controllers/UserInputMapper.cpp
2015-10-20 21:59:00 -07:00
samcake
da55011c2a
Trying to merge
2015-10-20 16:38:41 -07:00
Brad Davis
eacd6af032
Get conditional routes working
2015-10-20 16:32:00 -07:00
Brad Davis
bea6fdd890
Working on JSON parsing and cleanup
...
Conflicts:
libraries/controllers/src/controllers/Route.cpp
libraries/controllers/src/controllers/ScriptingInterface.cpp
libraries/controllers/src/controllers/StandardController.cpp
libraries/controllers/src/controllers/impl/RouteBuilderProxy.h
2015-10-20 10:20:28 -07:00
samcake
07aac6b2c7
Merging with upstream
2015-10-20 10:13:47 -07:00
samcake
8701d73ee9
DOing the groundwork to pass along the pose
...
still not working
2015-10-19 19:05:37 -07:00
Brad Hefta-Gaub
9acff9497c
fix several warnings
2015-10-19 17:34:59 -07:00
Brad Davis
22602fb6f6
Fixing line endings
2015-10-19 10:00:16 -07:00
Brad Davis
184303d3c9
Using JS mappings for joystick, updating test code
2015-10-18 20:44:32 -07:00
Brad Davis
734a39f962
Breaking up UserInputMapper, restoring some mappings
2015-10-18 18:58:03 -07:00
Brad Davis
db0fa6b8ed
Update hydra mappings and test code
2015-10-16 17:23:09 -07:00
Brad Hefta-Gaub
52021f573d
Merge branch 'controllers' of https://github.com/highfidelity/hifi into renameInputPlugins
...
Conflicts:
libraries/controllers/src/controllers/UserInputMapper.cpp
2015-10-14 19:05:41 -07:00
Brad Hefta-Gaub
46e40ed032
work on device names
2015-10-14 18:52:19 -07:00
Brad Davis
e39219c2b5
Fixes and PR comments
2015-10-14 16:51:52 -07:00
Brad Hefta-Gaub
4107f4ea9f
guard sixense from updating before activated
2015-10-14 15:32:10 -07:00
Brad Davis
0063f9ae1d
Merging old and new controller interfaces
2015-10-14 15:16:54 -07:00
Brad Davis
619fce0d7f
Fixing namespace usage in input-plugins
2015-10-14 13:40:22 -07:00
Brad Davis
0c31fb1b1b
Merge pull request #6069 from ZappoMan/controllers
...
Hack in NewControllers into the JS layer of interface to allow testing
2015-10-13 19:08:26 -07:00
Brad Hefta-Gaub
7846965fbc
Merge pull request #6068 from jherico/controllers
...
Making anonymous mappings work
2015-10-13 16:23:24 -07:00
Brad Davis
910629c287
Merge remote-tracking branch 'upstream/master' into HEAD
2015-10-13 13:32:05 -07:00
Brad Davis
261384b4bb
Fixing build breakage
2015-10-13 11:47:06 -07:00
Brad Davis
7f8f5f66c7
Working on plugin active concept
2015-10-13 10:01:01 -07:00
Ryan Huffman
9a9bdbbc44
hack in mappings to interface
2015-10-12 17:59:58 -07:00
Ryan Huffman
f860ca923e
revert small hack
2015-10-12 16:01:26 -07:00
Atlante45
c666c9fb9b
Fix warning
2015-10-12 13:40:33 -07:00
Ryan Huffman
ebeb87ba62
test
2015-10-12 11:21:40 -07:00
Brad Davis
f77878ee79
Merge remote-tracking branch 'upstream/master' into HEAD
2015-10-12 11:05:28 -07:00
Brad Davis
14f511350d
Working on refactoring the xbox hardware access and wiring up test code
2015-10-12 10:47:23 -07:00
Brad Hefta-Gaub
f8956a853b
Merge pull request #6051 from jherico/marge
...
Cleanup CMake files
2015-10-11 16:22:56 -07:00
Brad Hefta-Gaub
21a473035e
more CR feedback
2015-10-11 15:37:17 -07:00
Brad Hefta-Gaub
312bbf6167
CR feedback
2015-10-11 15:15:20 -07:00
Brad Hefta-Gaub
9667a103aa
actually add new files
2015-10-11 15:02:11 -07:00
Brad Hefta-Gaub
0986f86c34
implement StandardController and expose it to JS as Controller.Standard.*
2015-10-11 14:55:07 -07:00
Brad Davis
6f5f6450df
Cleanup CMake files
2015-10-11 00:01:03 -07:00
Brad Hefta-Gaub
ded677e90f
Merge branch 'master' of https://github.com/highfidelity/hifi into newControllerInterface
2015-10-10 09:33:55 -07:00
Brad Hefta-Gaub
63f3156a61
add Controler.Actions
2015-10-09 21:23:19 -07:00
Howard Stearns
7ba149fbbd
Log when hydra is disconnected.
2015-10-09 16:19:14 -07:00
Brad Hefta-Gaub
37f530f97f
first cut at wiring up devices and inputs to JS
2015-10-09 16:15:29 -07:00
Atlante45
cba8b0962d
Fix warnings
2015-10-09 13:29:59 -07:00
Andrew Meadows
0680be0422
save sixense settings and some UI cleanup
2015-10-07 14:19:15 -07:00
Clément Brisset
5eda3095bb
Merge pull request #5998 from birarda/qt-5.5
...
suppress warnings for overriden methods in Xcode 7
2015-10-05 17:00:43 -07:00
Stephen Birarda
3ddfcc10c2
override additions to input-plugins
2015-10-05 15:50:35 -07:00
Howard Stearns
844270e306
Reset (as though by apostrophe key) whenever we calibrate the hydra.
2015-10-05 12:44:22 -07:00
Andrew Meadows
e9c71f3867
cleanup comments
2015-10-02 10:02:12 -07:00
Andrew Meadows
940b8eb529
improve some variable names
2015-10-02 09:39:13 -07:00
Andrew Meadows
98fe06be57
cleanup sixense/hydra calibration
2015-10-02 09:30:18 -07:00
Brad Hefta-Gaub
85b2322acc
more work on batch optimzation
2015-09-24 17:11:14 -07:00
Brad Hefta-Gaub
9a0e5b9870
address Sam's concerns
2015-09-23 17:37:48 -07:00
ZappoMan
65a079cb53
fix mac build
2015-09-23 16:48:34 -07:00
Brad Hefta-Gaub
ef25876c9a
implement vector caching for gpu::Batch
2015-09-23 14:46:47 -07:00
Shared Vive Room
3c64db5c86
Adjust controller offset from 6 inches to 3 inches
...
When using the vive controller the position of your wrist should
match your actual wrist a bit better, unless your name is Shaquille O'Neal.
2015-09-18 12:02:05 -07:00
Brad Davis
644e81e20b
Toggle mute while holding the hydras
2015-09-04 16:19:58 -07:00