From d25e64e996f86a98004e588644318fde79faee0e Mon Sep 17 00:00:00 2001 From: Claudius Coenen Date: Fri, 13 Feb 2015 17:57:18 +0100 Subject: [PATCH] fixing button flickering if the message queue was empty --- bindings/unity/src/UniMoveController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/unity/src/UniMoveController.cs b/bindings/unity/src/UniMoveController.cs index 77c3ca44..f2690777 100644 --- a/bindings/unity/src/UniMoveController.cs +++ b/bindings/unity/src/UniMoveController.cs @@ -236,8 +236,8 @@ void Update() // The events are not really working from the PS Move Api. So we do our own with the prevButtons //psmove_get_button_events(handle, ref pressed, ref released); + currentButtons = buttons; } - currentButtons = buttons; // For acceleration, gyroscope, and magnetometer values, we look at only the last value in the queue.