Request: Public variable for PolledInputStatus

BlitzMax Forums/BlitzMax Programming/Request: Public variable for PolledInputStatus

Grey Alien(Posted 2006) [#1]
In polledinput.bmx, there is a private global called enabled that gets set to true/false when polledinput is enabled/disabled. It would be good to have a public variable which mirrored the enabled global or a PolledInputGetEnabled() function that would return the state of enabled.

Why? Well then, if I want to turn polledinput on or of temporarily to run some code, then switch it back to it's previous state, I could do this. Currently there is no way to track the current state of polledinput so that you can decide if it needs resetting after you've enabled/disabled it temporarily. I know I could modify the module myself but I prefer to keep the modules mainly "pure" and this wouldn't require a change of behaviour if BRL could put it in, it's just a tiny extra it of functionality (low priority I know, but I thought I mention it anyway.)

Thanks.