psmove_get_trigger() private method

private psmove_get_trigger ( IntPtr move ) : char
move IntPtr
return char
示例#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);
        }