Beispiel #1
0
    protected List <ButtonMapping> getButtonMappings()
    {
        List <ButtonMapping> buttons = new List <ButtonMapping>();

        for (int i = 0; i < inputManager.buttonCount; ++i)
        {
            if (inputManager.ButtonAt(i).controllerType != controllerType)
            {
                continue;
            }

            buttons.Add(convertButtonInfoToMapping(inputManager.ButtonAt(i)));
        }

        return(buttons);
    }