I need to have a robust GUI system for my game, and I think BGUI is just what I need.
But, when I try to use it with the example script given, I get this traceback error:
line 38, in <dictcomp>
self.keymap = {getattr(bge.events, val): getattr(bgui, val) for val in dir(bge.events) if val.endswith('KEY') or val.startswith('PAD')}
AttributeError: 'module' object has no attribute 'OSKEY'
I’ve been hunting around for a long time trying to find a solution to this particular problem, and digging through all the BGUI .py files trying to find where this line of code is.
After searching for ‘self.keymap’ in every py file in the BGUI folder, I get zero hits.
What is wrong, and how can I fix it?