Commit Graph

3295 Commits

Author SHA1 Message Date
Malin E
5ae9bfcd14 Fix shouldInvert default value for joysticks 2021-11-15 12:56:38 +01:00
Emma Broman
3d3db47d76 Small include updates to adapt to inputstate changes 2021-11-12 14:07:07 +01:00
Malin E
3fdae48092 Exchange normalisation property for joysticks to JoystickType
* Joysticks can either be "JoystickLike" or "TriggerLike", where the
  triggers are normalized and have the deadzone close to -1 instead to 0

* Solves issue with zoom friction not to turn off for controllers
2021-11-12 11:46:17 +01:00
Malin E
e075f8ae82 Merge branch 'master' into feature/multiple-joysticks
* Solve conflicts in navigationhandler.cpp
2021-11-12 09:51:05 +01:00
Malin E
a515f85234 Add ability to bind a joystick axis to a property value 2021-11-11 09:27:54 +01:00
Alexander Bock
55ee3d2785 Remove the user data from the Lua function definition 2021-11-04 16:27:54 +01:00
Malin E
3526e14e66 Add support for several joysticks at the smae time 2021-11-04 13:19:43 +01:00
Malin E
8bddf38f02 Split InputState into MouseInputState and KeyboardInputState 2021-11-03 15:28:37 +01:00
Malin E
23eed7f023 Move abstract function updateStateFromInput to the concrete classes 2021-11-03 14:41:29 +01:00
Alexander Bock
fb6807b1e0 Add the ability for lua libraries to define sublibraries 2021-11-01 22:44:32 +01:00
Malin E
a8c74979c1 Merge branch 'master' into feature/animation-fixes 2021-10-25 10:51:13 +02:00
Malin E
d86923ebb7 Fix ScriptScheduler tests 2021-10-25 10:49:24 +02:00
Gene Payne
f5ed0eae0c Typo fix in eventEngine for non-windows builds 2021-10-15 14:22:08 -06:00
Malin E
fc4c3f1cfa Merge branch 'master' into feature/animation-fixes
* Resolve conflicts in scene.cpp
2021-10-14 14:23:24 +02:00
Alexander Bock
4a860fb01d Some code facelifting 2021-10-14 10:31:46 +02:00
Alexander Bock
8d26f6e167 Set the user-agent when requesting a download (closes #1765). Also report the error code if a download fails 2021-10-13 21:46:08 +02:00
Malin E
659cc09e4b Address PR comments 2021-10-12 08:52:03 +02:00
Alexander Bock
76dd45e5ce Event System (#1741)
* Add implementation of the EventEngine to handle global event chains
* Add properties to SceneGraphNodes to determine two distance radii for camera-based events
2021-10-11 21:53:00 +02:00
Emma Broman
d230675181 Add Lua function to get current application time 2021-10-11 15:43:06 +02:00
Malin E
8992f983c6 Address PR comments 2021-10-11 14:00:19 +02:00
Alexander Bock
7c7e5b2999 Remove some warnings 2021-10-11 13:38:00 +02:00
Malin E
5152258c9a Add property to run or not run scripts at a time jump in
scriptsScheduler
2021-10-11 10:39:57 +02:00
Malin E
630360cfad Fix broken backward scripts in scriptScheduler 2021-10-11 10:29:20 +02:00
Malin E
e2c592e049 WIP: Add groups to scriptScheduler
* NOTE: This breaks the backwards scripts
2021-10-08 19:17:06 +02:00
GPayne
a2a8f93ba5 Moved string bracket trim function to ghoul library 2021-10-07 16:10:00 -06:00
GPayne
c36ea36a43 Code review changes 2021-10-07 00:26:29 -06:00
GPayne
990835d7cd Fix for crash if profile has no camera entry 2021-10-06 16:05:07 -06:00
GPayne
515bdd6b1f Fix for profile relative time errors 2021-10-06 15:47:10 -06:00
Malin E
992778bd50 Make JWSTPosition to a TimelineTranslation
* Switches from being parented to Earth to being parented to L2 at 2018
  NOV 01 00:00:00

* JWSTPosition depends on two horizons files that have different
  observers (Earth and L2)
2021-10-06 18:00:10 +02:00
Malin E
26101b66cc Add action to play timelapse in reverse 2021-10-06 13:05:14 +02:00
GPayne
80546313fd Fixed handling of strings with quotes or brackets, and better table push 2021-10-03 21:03:32 -06:00
GPayne
9464530cdd Changes to get lua table entries working using variant type 2021-10-01 16:44:20 -06:00
GPayne
450b101cd5 Adding support for lua table as a possible profile properties value 2021-09-28 20:35:53 -06:00
Malin E
6deac09604 Merge branch 'master' into feature/animation-fixes 2021-09-28 08:40:16 +02:00
Gene Payne
d0700c0b5d Merge pull request #1754 from OpenSpace/issue/1735
Removed hard-coded path expectations to allow drag & drop playback
2021-09-24 12:35:20 -06:00
Gene Payne
e8a911ba0c Merge pull request #1756 from OpenSpace/issue/1732
Improved numerical precision on scale value in sessionRecording files in ascii format (Issue#1732)
2021-09-24 10:29:36 -06:00
Emma Broman
679d723930 Fix problems with camera paths when multiple nodes have the same position 2021-09-24 15:02:12 +02:00
Malin E
802f1e0d33 Merge branch 'master' into feature/animation-fixes 2021-09-23 11:40:32 +02:00
GPayne
b00b900278 Get rid of some sessionrecording warnings 2021-09-22 15:58:59 -06:00
Gene Payne
24fafc8718 Merge pull request #1742 from OpenSpace/feature/profileOverScene
Profiles are now required and processed with their own dedicated functions rather than being converted to an asset at startup.
2021-09-22 13:22:26 -06:00
Malin E
0076fd7613 Merge branch 'master' into feature/animation-fixes 2021-09-22 15:00:19 +02:00
GPayne
6c5a81a677 Removed hard-coded path exepectations to allow drag-drop playback 2021-09-21 14:59:39 -06:00
GPayne
3e1b198c38 Restored mistakenly-deleted call to updateScene 2021-09-20 09:19:46 -06:00
GPayne
598f2f473a Fixed json syntax error in writing profile meta 2021-09-19 12:27:07 -06:00
GPayne
c72211c322 Code review change to remove ambiguous lua push after conversion 2021-09-17 14:20:07 -06:00
GPayne
a4d84d8703 Code review changes on new profile initialization 2021-09-16 23:11:02 -06:00
Emma Broman
d160ac8bc8 Add Lua function to directly create path to a navigation state
Note that paths to navstates still have to be improved, but this makes out life easier when testing
2021-09-16 13:58:04 +02:00
Emma Broman
3b0a2e4c06 Rename 'generatePath' to 'createPath'
shorter, better, faster (and I keep writing this by mistake all the time)
2021-09-16 13:22:36 +02:00
Malin Ejdbo
febd4c3b53 Add enable property to the ScriptScheduler
* NOTE: A rebuild of the globals library will be required to make this
commit compile
2021-09-14 17:11:30 +02:00
Malin Ejdbo
a7cc3a46bd Merge branch 'master' into feature/animation-fixes 2021-09-14 13:05:18 +02:00