Updated initialization code. /JL #27
@@ -3,4 +3,4 @@
|
|||||||
Small module to make it easy to add controller support.
|
Small module to make it easy to add controller support.
|
||||||
|
|
||||||

|

|
||||||

|

|
1
main.py
1
main.py
@@ -4,7 +4,6 @@ from pygameControls import globals
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pygame.init()
|
pygame.init()
|
||||||
globals.init()
|
|
||||||
|
|
||||||
done = False
|
done = False
|
||||||
|
|
||||||
|
@@ -1,10 +1,11 @@
|
|||||||
import pygame
|
import pygame
|
||||||
from . import globals
|
from . import globals
|
||||||
|
|
||||||
__version__ = "0.2.3"
|
__version__ = "0.2.4"
|
||||||
|
|
||||||
class Controllers:
|
class Controllers:
|
||||||
def __init__(self, joy):
|
def __init__(self, joy):
|
||||||
|
globals.init()
|
||||||
self.controllers = []
|
self.controllers = []
|
||||||
cont = self.detect_controller(joy.get_guid())
|
cont = self.detect_controller(joy.get_guid())
|
||||||
print(cont)
|
print(cont)
|
||||||
|
Reference in New Issue
Block a user