mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Batch axis events to the VR code
This commit is contained in:
1 parent
b3be6db3ae
commit
1a5d5452fe
4 files changed
+14
-15
No files matched your search
+5
-9
@@ -1319,9 +1319,9 @@ bool NativeKey(const KeyInput &key) {
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void ProcessOneAxisEvent(const AxisInput &axis) {
|
||||
void NativeAxis(const AxisInput *axes, size_t count) {
|
||||
// VR actions
|
||||
if (IsVREnabled() && !UpdateVRAxis(axis)) {
|
||||
if (IsVREnabled() && !UpdateVRAxis(axes, count)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1330,14 +1330,10 @@ static void ProcessOneAxisEvent(const AxisInput &axis) {
|
||||
return;
|
||||
}
|
||||
|
||||
// only do special handling of tilt events if tilt is enabled.
|
||||
HLEPlugins::PluginDataAxis[axis.axisId] = axis.value;
|
||||
g_screenManager->axis(axis);
|
||||
}
|
||||
|
||||
void NativeAxis(const AxisInput *axes, size_t count) {
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
ProcessOneAxisEvent(axes[i]);
|
||||
const AxisInput &axis = axes[i];
|
||||
g_screenManager->axis(axis);
|
||||
HLEPlugins::PluginDataAxis[axis.axisId] = axis.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user