This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic Perfect Makefile for compiling target .cpp files with SDL2 libraries using g++. | |
#USEAGE: copy Makefile to folder with .cpp files then type "make" | |
#OBJS specifies which files to compile as part of the project | |
OBJS = $(wildcard *.cpp) | |
#CC specifies which compiler we're using | |
CC = g++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
from pygame.locals import * | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame,sys,glob | |
pygame.init() | |
#from pygame import * | |
try: | |
j = pygame.joystick.Joystick(0) # create a joystick instance | |
j.init() # init instance | |
print ("Enabled joystick: {0} with {1} buttons".format( j.get_name(),j.get_numbuttons())) |
NewerOlder