THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/08/2006 at 20:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.102
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
What use is this method - at all? It only seems to work if the tool is active and selected in the AM - otherwise there is an extremely successful probability of crashing C4D because the key does something else if these conditions aren't fully met.
The documentation says:
Make sure that you only use this function when the user is somehow working with your plugin, so that other plugins can also use this hook when it's their turn.
How do you absolutely guarantee that the 'user is somehow working with your plugin' if the conditions that I saw exist? There are no other active tools - it can crash. Using and gobbling the expected keys doesn't guarantee anything - there is most definitely a focus problem with keyboard input. If my tool is active - screw the universe!!! I get first dibs - hands off and I won't go further on a linguistic rampage...
So, do I delete the ToolData::KeyboardInput() method as useless and potentially dangerous or is there a way to avoid it (remember, users aren't automatons)?
Thanks,