chriskiehl/pyrobot

Keys class enhancement

Closed this issue · 1 comments

gcq commented

Refactoring the Keys class like this:

class Keys(object):
        space=32;left_mouse_button=1;right_mouse_button=2;[...]

There is no need to instantiate Keys, you can use it right away:

#Now:
Keys.space

#Instead of:
key = Keys()
key.space

Ah, smart! Do you want to fix it and submit a pull?