Prepare things for the event loop, also abstract gross stuff from end users
This commit is contained in:
@@ -10,9 +10,9 @@ class Keymap:
|
||||
for ridx, row in enumerate(matrix):
|
||||
for cidx, col in enumerate(row):
|
||||
if col != self.state[ridx][cidx]:
|
||||
print('{}: {}'.format(
|
||||
yield '{}: {}'.format(
|
||||
'KEYDOWN' if col else 'KEYUP',
|
||||
self.map[ridx][cidx],
|
||||
))
|
||||
)
|
||||
|
||||
self.state = matrix
|
||||
|
Reference in New Issue
Block a user