leaky bucket handles weighted inputs ok with default args tbh, maybe a little heavy handed
parent
1b38935cb0
commit
51d11a6afb
|
|
@ -21,10 +21,10 @@ def main():
|
||||||
for key in buckets:
|
for key in buckets:
|
||||||
#keycode = buttons.keys[bucket[key][1]]
|
#keycode = buttons.keys[bucket[key][1]]
|
||||||
if buckets[key][0]:
|
if buckets[key][0]:
|
||||||
print("down", key, end=" ") #, button[key])
|
print(f"+{key}", end=" ") #, button[key])
|
||||||
#buttons.down(keycode)
|
#buttons.down(keycode)
|
||||||
else:
|
else:
|
||||||
print("up", key, end=" ") #, button[key])
|
print(f"-{key}", end=" ") #, button[key])
|
||||||
#buttons.up(keycode)
|
#buttons.up(keycode)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue