How to undefine a handler for a key?

Return to C++ coding using Panda3D

How to undefine a handler for a key?

Postby consultit » Mon Jun 04, 2012 2:32 pm

What is the best way to undefine an function handler, defined with
Code: Select all
framework->define_key("event_name", "description", &function, (void*)data);

Thanks for help.
consultit
 
Posts: 24
Joined: Wed Nov 30, 2011 7:41 am

Postby rdb » Mon Jun 04, 2012 2:40 pm

There is currently no way to do so. However, if you look at the pandaFramework.cxx/.h source code, you'll see that define_key is just a thin wrapper function for EventHandler. You may use these lower level functions instead.
rdb
 
Posts: 8565
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby consultit » Tue Jun 05, 2012 9:45 am

Thanks for help.
consultit
 
Posts: 24
Joined: Wed Nov 30, 2011 7:41 am


Return to C++ coding using Panda3D

Who is online

Users browsing this forum: No registered users and 0 guests