HaxeFlixel / flixel-docs

Documentation for HaxeFlixel
72 stars 135 forks source link

Fix Gamepad sample code #210

Closed brettchalupa closed 6 years ago

brettchalupa commented 6 years ago

This updates the example code for the gamepad to properly initialize the gamepad variable. Without the var keyword and type, the game will fail to compile due to these errors:

source/PlayState.hx:12: characters 8-15 : Unknown identifier : gamepad
source/PlayState.hx:13: characters 12-19 : Unknown identifier : gamepad