Asteroids.Classes.KeyboardHandler.GetKeyBind C# (CSharp) Method

GetKeyBind() public method

public GetKeyBind ( int index ) : string
index int
return string
        public string GetKeyBind(int index)
        {
            return keyBinds[index, 1];
        }

Usage Example

コード例 #1
0
        public ControlHandler()
        {
            cActions = new List<string>();
            kbHandler = new KeyboardHandler();
            wmHandler = new WiimoteHandler();
            wiimoteIsConnected = wmHandler.CheckConnection();

            for (int i = 0; i < 10; i++)
            {
                keyBindings[i, 1] = kbHandler.GetKeyBind(i);
                keyBindings[i, 2] = wmHandler.getKeyBind(i);
            }
        }