MouseInterfaceNode

from panda3d.core import MouseInterfaceNode
class MouseInterfaceNode

Bases: DataNode

This is the base class for some classes that monitor the mouse and keyboard input and perform some action due to their state.

It collects together some common interface; in particular, the require_button() and related methods.

Inheritance diagram

Inheritance diagram of MouseInterfaceNode

__init__(*args, **kwargs)
clearAllButtons()

C++ Interface: clear_all_buttons(const MouseInterfaceNode self)

/**
  • Removes all requirements on buttons set by an earlier call to

  • require_button().

*/

clearButton()

C++ Interface: clear_button(const MouseInterfaceNode self, const ButtonHandle button)

/**
  • Removes any requirement on the indicated button set by an earlier call to

  • require_button().

*/

clear_all_buttons()

C++ Interface: clear_all_buttons(const MouseInterfaceNode self)

/**
  • Removes all requirements on buttons set by an earlier call to

  • require_button().

*/

clear_button()

C++ Interface: clear_button(const MouseInterfaceNode self, const ButtonHandle button)

/**
  • Removes any requirement on the indicated button set by an earlier call to

  • require_button().

*/

getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()

requireButton()

C++ Interface: require_button(const MouseInterfaceNode self, const ButtonHandle button, bool is_down)

/**
  • Indicates that the indicated button must be in the required state (either

  • up or down) in order for this particular MouseInterfaceNode to do anything.

  • For instance, this may be called to make a Trackball object respect mouse

  • input only when the control key is held down.

*/

require_button()

C++ Interface: require_button(const MouseInterfaceNode self, const ButtonHandle button, bool is_down)

/**
  • Indicates that the indicated button must be in the required state (either

  • up or down) in order for this particular MouseInterfaceNode to do anything.

  • For instance, this may be called to make a Trackball object respect mouse

  • input only when the control key is held down.

*/