zeth / inputs

Cross-platform Python support for keyboards, mice and gamepads
BSD 3-Clause "New" or "Revised" License
269 stars 87 forks source link

Create an all_events Function #68

Open frastlin opened 5 years ago

frastlin commented 5 years ago

Hello, I would like to be able to grab mouse, keyboard, and gamepad events all at once. Currently if I run get_mouse, get_key, get_gamepad one after another, the initial events of key and gamepad are not caught. I would like a new function: get_events This should have all events and each event should have a new attribute of device_type that is either: "gamepad", "mouse", or "key".