MouseInterfaceNode

from panda3d.core import MouseInterfaceNode
class MouseInterfaceNode

Bases:

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 requireButton() and related methods.

Inheritance diagram

Inheritance diagram of MouseInterfaceNode

__init__(param0: MouseInterfaceNode)
clearAllButtons()

Removes all requirements on buttons set by an earlier call to requireButton().

clearButton(button: ButtonHandle)

Removes any requirement on the indicated button set by an earlier call to requireButton().

static getClassType() TypeHandle
requireButton(button: ButtonHandle, is_down: bool)

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.