コード例 #1
0
    public static bool GetInputTouch2D(int playerID, byte device, byte control, ref Vector2 position, ref byte state)
    {
        var pos = new AXRVector2D();

        if (ocs_GetInputTouch2D(playerID, device, control, ref pos, ref state) == false)
        {
            return(false);
        }

        position = pos.toVector2();
        return(true);
    }
コード例 #2
0
    public static bool GetInputAxis2D(int playerID, byte device, byte control, ref Vector2 axis2D)
    {
        var result = new AXRVector2D();

        if (ocs_GetInputAxis2D(playerID, device, control, ref result) == false)
        {
            return(false);
        }

        axis2D = result.toVector2();
        return(true);
    }
コード例 #3
0
 private static extern void ocs_PendInputTouch2D(byte device, byte control, AXRVector2D position, byte state, bool active);
コード例 #4
0
 private static extern void ocs_PendInputAxis2D(byte device, byte control, AXRVector2D axis2D);
コード例 #5
0
 private static extern bool ocs_GetInputTouch2D(int playerID, byte device, byte control, ref AXRVector2D position, ref byte state);
コード例 #6
0
 private static extern bool ocs_GetInputAxis2D(int playerID, byte device, byte control, ref AXRVector2D axis2D);