If you pass an empty string as the first parameter (which the docs say is to allow for global binding), the tools will instantly crash upon use of the inputs specified in the second parameter. Also, unless I am somehow using this wrong, I am also unable to get my callback called when using a panel or ID string for the first parameter. None of the input seems to allow for the callback to be called.
As a minor point, is there an input to be used for mouse x/y coordinates? The panorama.dll contains a bunch of acceptable inputs such as mouse_left, key_space, etc. but nothing pertaining to mouse coordinates.
Lastly, the docs say the last parameter can take an event name, but I am really confused as to how you can register an event that this function will detect. Even if you use the custom_events.txt to supply a custom event, it is completely irrelevant to this function. I have also tried using the GameEvents.Subscribe to try to make the event actually exist for panorama but to no avail. And I have tried to use Panel.SetPanelEvent for the same purpose along with even specifying an existing panorama event (such as MoveUp, MoveLeft, etc.), but those instantly crash the tools upon recompilation. At this point, it seems to be impossible to supply custom events to this function (although I was only attempting to do so because the callback wasn't working).
If I am missing something blatantly obvious about this function, let me know.
As a minor point, is there an input to be used for mouse x/y coordinates? The panorama.dll contains a bunch of acceptable inputs such as mouse_left, key_space, etc. but nothing pertaining to mouse coordinates.
Lastly, the docs say the last parameter can take an event name, but I am really confused as to how you can register an event that this function will detect. Even if you use the custom_events.txt to supply a custom event, it is completely irrelevant to this function. I have also tried using the GameEvents.Subscribe to try to make the event actually exist for panorama but to no avail. And I have tried to use Panel.SetPanelEvent for the same purpose along with even specifying an existing panorama event (such as MoveUp, MoveLeft, etc.), but those instantly crash the tools upon recompilation. At this point, it seems to be impossible to supply custom events to this function (although I was only attempting to do so because the callback wasn't working).
If I am missing something blatantly obvious about this function, let me know.
Comment