All pastes #497957 Raw Edit

Something

public cpp v1 · immutable
·published 2007-05-20 04:03 UTC
rendered paste body
#include <windows.h>#include <SDL.h>#include <stdio.h>SDL_Joystick *joy;#undef mainint main(int poo, char **poo2){	if (SDL_Init(SDL_INIT_JOYSTICK) < 0) 	{        MessageBox(NULL,"Unable to start SDL!","Error",MB_ICONERROR | MB_OK);		return;    }		joy = SDL_JoystickOpen(0);	printf("Joystick Name: %s\n",SDL_JoystickName(0));		if(joy)	{		printf("Number of Axes: %s\n", SDL_JoystickNumAxes(joy));		printf("Number of Buttons: %s\n", SDL_JoystickNumButtons(joy));		printf("Number of Balls: %s\n", SDL_JoystickNumBalls(joy));	}	else		printf("Couldn't open Joystick 0\n");	SDL_JoystickClose(0);	SDL_Quit();	system("PAUSE");	return 0;}