psmove_get_buttons() private method

private psmove_get_buttons ( IntPtr move ) : uint
move IntPtr
return uint
示例#1
0
        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);
        }