Esempio n. 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);
    }
Esempio n. 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);
    }