Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def convert_timeval(seconds_since_epoch):

EVENT_MAP = (
('types', EVENT_TYPES),
('type_codes', ((value, key) for key, value in EVENT_TYPES)),
('type_codes', tuple((value, key) for key, value in EVENT_TYPES)),
('wincodes', WINCODES),
('specials', SPECIAL_DEVICES),
('xpad', XINPUT_MAPPING),
Expand Down Expand Up @@ -3677,3 +3677,7 @@ def get_gamepad():
except IndexError:
raise UnpluggedError("No gamepad found.")
return gamepad.read()

def rescan_devices():
global devices
devices = DeviceManager()