From d6fb7d85f12934cff8ad895ff15912a6915436e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20Ed=C3=A9n?= Date: Tue, 11 Apr 2017 14:10:16 +0200 Subject: [PATCH] Fixed controller buttons: unControllerSize is size of struct in bytes. Cleaned up controller detection code from last commit --- jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java index 4de4e494f..b4b5cdce5 100644 --- a/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java +++ b/jme3-vr/src/main/java/com/jme3/input/vr/OpenVRInput.java @@ -411,7 +411,8 @@ public class OpenVRInput implements VRInputAPI { if (environment != null){ controllerCount = 0; for(int i=0;i