SDL.SDL_JoystickGetButton(_joystick, 0);
void OnPressed(int button){ if (_productId = 1111) { for (int i = 0; i < 27; i++) { byte button0 = SDL.SDL_JoystickGetButton(_joystick, 0); byte button1 = SDL.SDL_JoystickGetButton(_joystick, 1); byte button2 = SDL.SDL_JoystickGetButton(_joystick, 2); byte button3 = SDL.SDL_JoystickGetButton(_joystick, 3); if (button0 == 1) { Console.Write("\nOff"); } if (button1 == 1) { Console.Write("\nLeft"); } if (button2 == 1) { Console.Write("\nCenter"); } if (button3 == 1) { Console.Write("\nRight"); } } }}