mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 19:30:11 +01:00
Don't barf on MOUSE_INPUT if it doesn't exist in config
This commit is contained in:
@@ -36,7 +36,9 @@ class NumpadInput(object):
|
||||
self.check_key_release_settings(event.char)
|
||||
|
||||
def on_mouse_move(self, event):
|
||||
if self.data.settings['user_input']['MOUSE_INPUT']['value'] != 'enabled':
|
||||
if self.data.settings['user_input'].setdefault(
|
||||
'MOUSE_INPUT',
|
||||
self.data.default_settings.get('MOUSE_INPUT',{'value': 'enabled'})).get('value') != 'enabled':
|
||||
return
|
||||
if event.x > 480 or event.y > 320:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user