Passing the framework as an keyboard parameter

Alright so next question…

Now that I have the static method… which works so thank you…

What would be your recommendation for referencing non-static variables?

Based on what you said above… (Sorry if i misunderstand)

Can I pass, in the data parameter of the define_key function, a pointer to my class instance and then access that private variable through that pointer? (I am unable to test it until tomorrow so I figured I would ask now)

Right, you can cast “this” to a void* and pass it as extra parameter. In the function itself, you can cast it back to a pointer to your class and access the members like data->member.

This thread also discusses it briefly, I believe:
discourse.panda3d.org/viewtopic.php?t=3403

Great! Seems to be working perfectly.

Thanks again for all the help!