Exemple #1
0
        private void HandleMouse(ResultSet resultSet)
        {
            Vector2i tilePos = GetMouseTilePos();

            if (tilePos.x == -1)
            {
                return;
            }

            if (RB.ButtonPressed(RB.BTN_POINTER_A))
            {
                resultSet.AddLeftClick(tilePos);
            }
            else if (RB.ButtonPressed(RB.BTN_POINTER_B))
            {
                resultSet.AddRightClick(tilePos);
            }
        }