Merge pull request #520 from pewpew-game/2.x

Fix example for gamepad
This commit is contained in:
Radomir Dopieralski 2018-01-11 18:44:50 +01:00 committed by GitHub
commit 8251abba8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -49,8 +49,8 @@ gamepad_obj_t* gamepad_singleton = NULL;
//|
//|
//| pad = gamepad.GamePad(
//| digitalio.DigitalInOut(board.D0),
//| digitalio.DigitalInOut(board.D1),
//| digitalio.DigitalInOut(board.D10),
//| digitalio.DigitalInOut(board.D11),
//| )
//|
//| y = 0
@ -63,8 +63,9 @@ gamepad_obj_t* gamepad_singleton = NULL;
//| y += 1
//| print(y)
//| time.sleep(0.1)
//| while pad.get_pressed():
//| while buttons:
//| # Wait for all buttons to be released.
//| buttons = pad.get_pressed()
//| time.sleep(0.1)
//|