aboutsummaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
Diffstat (limited to 'inputs')
-rw-r--r--inputs/PygameInput.py2
-rw-r--r--inputs/__init__.py0
2 files changed, 2 insertions, 0 deletions
diff --git a/inputs/PygameInput.py b/inputs/PygameInput.py
index 6c84664..e07592b 100644
--- a/inputs/PygameInput.py
+++ b/inputs/PygameInput.py
@@ -7,6 +7,8 @@ from pygame.locals import *
class PygameInput(Input):
def sensingLoop(self):
#try:
+ if self['FollowMouse']:
+ self.respond({Util.location: pygame.mouse.get_pos()})
for event in pygame.event.get():
if event.type is KEYDOWN:
self.respond({Util.location: (5,5),'Key': event.key})
diff --git a/inputs/__init__.py b/inputs/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/inputs/__init__.py