private static void ControllerUpdateButtonState( IntPtr psmove, // PSMove* PSMoveRawControllerData_Base controllerData) { // Get the controller button state controllerData.Buttons = PSMoveAPI.psmove_get_buttons(psmove); // Bitwise; tells if each button is down. // Get the controller trigger value (uint8; 0-255) controllerData.TriggerValue = (byte)PSMoveAPI.psmove_get_trigger(psmove); }