Commit graph

273 commits

Author SHA1 Message Date
Henrik Rydgård
75dd31894c Followup to #17471: Fix Lubos' VR sky clearing hack 2023-06-04 10:18:52 +02:00
Henrik Rydgård
2675d6ea43
Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally

* Switch axisId to enum InputAxis

* Change int keycodes to InputKeyCode where it makes sense.

* SDL input buildfix

* SDL keycode buildfix

* Switch on enum warning fixes

* Qt keycode buildfix

* iOS keycode buildfix

* UWP keycode buildfix

* More iOS buildfix

* More iOS buildfix

* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Henrik Rydgård
84da0327d6 GLQueueRunner: Make DrawIndexed parameters more consistent. 2023-05-23 17:49:11 +02:00
Henrik Rydgård
47931deda7 Switch to FastVec for commands. Slower than std::vector! 2023-05-23 08:54:41 +02:00
Henrik Rydgård
e4a729d371 Remove unnecessary zero-initialization of GLRRenderCommand structs 2023-05-23 08:53:48 +02:00
Henrik Rydgård
c7caefe6d8 Have Draw and DrawIndexed share command and struct. Will make the next change easier. 2023-05-10 10:40:33 +02:00
Henrik Rydgård
d5e0299b0b GLR: Share union struct between Draw/DrawIndex 2023-05-10 10:32:13 +02:00
Henrik Rydgård
cd33b79ae7 Fix an issue where stray KEY_UP events could confuse the control mapper into setting empty events
This had some not-so-good consequences, like inability to map anything
in VR, and sometimes empty MultiMappings would result that we could end
up asserting on before the previous commit.
2023-05-05 23:00:01 +02:00
Lubos
de462f481f OpenXR - Disable stereo in Motorstorm 2023-04-01 19:48:53 +02:00
Lubos
b59a0728f6 OpenXR - Stereo separation only when enabled 2023-04-01 19:10:18 +02:00
Lubos
e7bbe322cd OpenXR - Stereoscopy math better 2023-04-01 18:58:46 +02:00
Lubos
5addc77258 OpenXR - Invalid operation removed 2023-04-01 18:05:18 +02:00
Henrik Rydgård
38f4cc4cc9 Make reverse mapping lookup work for the simple PSP buttons. 2023-03-31 11:05:29 +02:00
Henrik Rydgård
416c09034b Minor header cleanup 2023-03-29 12:03:03 +02:00
Henrik Rydgård
d00809ae53 Rename KeyDef to InputMapping and give it responsibility for Axis encoding 2023-03-29 11:59:31 +02:00
Henrik Rydgård
534896d2ab ControlMapper: Allow overriding PSP button event handling through a callback. 2023-03-28 00:23:18 +02:00
Lubos
61eaae37f7 OpenXR - Camera mode offset 2023-03-23 19:42:08 +01:00
Lubos
983f8176dd OpenXR - Enable user to switch between topdown and fps camera 2023-03-12 14:41:17 +01:00
Lubos
f24026d163 OpenXR - Increase foveation level 2023-03-09 21:04:30 +01:00
Lubos
4fcc69242e OpenXR - Foveation implemented (Quest only) 2023-03-09 20:42:49 +01:00
Lubos
61b0513046 OpenXR - Platform flags for extensions refactored 2023-03-09 17:54:34 +01:00
Henrik Rydgård
38f34fb487
Merge pull request #17079 from lvonasek/review_openxr
OpenXR - Vertical HMD rotation to keys removed
2023-03-09 13:18:08 +01:00
Lubos
b1f41c44fe OpenXR - Vertical HMD rotation to keys cleanup 2023-03-09 11:22:54 +01:00
huhongwei
624e443b5b Fix logic error: assign EGLSurface to EGLConfig 2023-03-02 09:13:31 +08:00
Lubos
c8daec9f40 OpenXR - Do not block stereo if world unit is not specified 2023-02-12 09:28:02 +01:00
Lubos
6e91ca9e54 OpenXR - Option to disable automatic switch between 2D and VR 2023-02-07 19:48:16 +01:00
Henrik Rydgård
df1700002b Attempt at libretro buildfix 2023-02-03 18:58:26 +01:00
Lubos
4fa7bbfc40 OpenXR - Ignore should render parameter 2023-02-03 10:00:15 +01:00
Lubos
f8b16a38a2 Merge branch 'master' into hotfix_pico53_bug 2023-02-03 09:53:11 +01:00
Lubos
f0bfb3f373 OpenXR - Head control mapping when game smoothes camera movement (MH3) 2023-01-28 21:45:29 +01:00
Lubos
7d1b50d6f9 OpenXR - Combine game and VR camera rotation 2023-01-28 18:36:29 +01:00
Lubos
5831d98c8a OpenXR - Disable head control when entering the menu 2023-01-28 13:41:04 +01:00
Lubos
b137ecf5c6 OpenXR - Head rotations refactor 2023-01-28 13:28:17 +01:00
Lubos
093903e6a6 OpenXR - Support head rotations in 2D 2023-01-28 13:08:27 +01:00
Lubos
c368a213ac OpenXR - Support head rotations in 2D 2023-01-28 11:50:46 +01:00
Lubos
1b0b8cb9cd OpenXR - Disable HMD rotations if requested 2023-01-28 10:42:31 +01:00
Henrik Rydgård
3b388c7692
Merge pull request #16826 from lvonasek/compat_openxr_mirroring
OpenXR - Fix axis mirroing for Tales of the World
2023-01-21 18:59:32 +01:00
Lubos
76c7dac9c1 OpenXR - Fix axis mirroing for Tales of the World 2023-01-21 17:46:02 +01:00
Lubos
5491a05796 OpenXR - Enable level 5 CPU/GPU performance on Quest 2 2023-01-20 14:40:09 +01:00
Lubos
e02eed6012 OpenXR - Allow scaling HUD to zero 2023-01-12 19:17:16 +01:00
Lubos
6dc264e7e5 OpenXR - Workaround for disfunctional depth buffer allocation 2023-01-10 19:28:02 +01:00
Henrik Rydgård
07114c6aaf Remove return value from axis functions in API 2023-01-10 10:12:37 +01:00
Henrik Rydgård
fdfc4cbe40 Android: Remove return value from touch event functions 2023-01-10 10:12:33 +01:00
Lubos
4aed933a9d OpenXR - Min HUD scale changed 2023-01-05 22:06:39 +01:00
Lubos
56443a007c OpenXR - Force flat mode for Madden NFL games 2022-12-26 15:57:29 +01:00
rofl0r
f406a207fc
VRBase: fix build error with musl libc
```
ppsspp-1.14.1/Common/VR/VRBase.cpp:94:9: error: 'exit' was not declared in this scope
   exit(1);                                                                   
```
exit() is declared in stdlib.h, but due to namespace pollution in glibc it happens to work there.
2022-12-20 14:50:08 +00:00
Jan Beich
6a9334e6f0 OpenXR - Correct NULL type for XrSession
Common/VR/VRBase.cpp:220:30: error: assigning to 'XrSession' (aka 'unsigned long long') from incompatible type 'nullptr_t'
                engine->appState.Session = NULL;
                                           ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
 #define NULL    nullptr
                 ^~~~~~~
2022-12-15 15:31:09 +00:00
Lubos
28c115c4ba OpenXR - Allow to put HUD out of the screen 2022-12-10 21:36:39 +01:00
Lubos
3cc979859c OpenXR - Release keys on activation of camera adjust 2022-12-10 21:31:39 +01:00
Lubos
8ff1156c04 OpenXR - SDK updated 2022-12-07 21:19:33 +01:00