MouseButton

from panda3d.core import MouseButton
class MouseButton

Bases: DTOOL_SUPER_BASE

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to standard mouse buttons.

Inheritance diagram

Inheritance diagram of MouseButton

__init__(*args, **kwargs)
button()

C++ Interface: button(int button_number)

/**
  • Returns the ButtonHandle associated with the particular numbered mouse

  • button (zero-based), if there is one, or ButtonHandle::none() if there is

  • not.

*/

five()

C++ Interface: five()

/**
  • Returns the ButtonHandle associated with the fifth mouse button.

*/

four()

C++ Interface: four()

/**
  • Returns the ButtonHandle associated with the fourth mouse button.

*/

isMouseButton()

C++ Interface: is_mouse_button(ButtonHandle button)

/**
  • Returns true if the indicated ButtonHandle is a mouse button, false if it

  • is some other kind of button.

*/

is_mouse_button()

C++ Interface: is_mouse_button(ButtonHandle button)

/**
  • Returns true if the indicated ButtonHandle is a mouse button, false if it

  • is some other kind of button.

*/

one()

C++ Interface: one()

/**
  • Returns the ButtonHandle associated with the first mouse button.

*/

three()

C++ Interface: three()

/**
  • Returns the ButtonHandle associated with the third mouse button.

*/

two()

C++ Interface: two()

/**
  • Returns the ButtonHandle associated with the second mouse button.

*/

wheelDown()

C++ Interface: wheel_down()

/**
  • Returns the ButtonHandle generated when the mouse wheel is rolled one notch

  • downwards.

*/

wheelLeft()

C++ Interface: wheel_left()

/**
  • Returns the ButtonHandle generated when the mouse is scrolled to the left.

  • Usually, you’ll only find the horizontal scroll on laptops.

*/

wheelRight()

C++ Interface: wheel_right()

/**
  • Returns the ButtonHandle generated when the mouse is scrolled to the right.

  • Usually, you’ll only find the horizontal scroll on laptops.

*/

wheelUp()

C++ Interface: wheel_up()

/**
  • Returns the ButtonHandle generated when the mouse wheel is rolled one notch

  • upwards.

*/

wheel_down()

C++ Interface: wheel_down()

/**
  • Returns the ButtonHandle generated when the mouse wheel is rolled one notch

  • downwards.

*/

wheel_left()

C++ Interface: wheel_left()

/**
  • Returns the ButtonHandle generated when the mouse is scrolled to the left.

  • Usually, you’ll only find the horizontal scroll on laptops.

*/

wheel_right()

C++ Interface: wheel_right()

/**
  • Returns the ButtonHandle generated when the mouse is scrolled to the right.

  • Usually, you’ll only find the horizontal scroll on laptops.

*/

wheel_up()

C++ Interface: wheel_up()

/**
  • Returns the ButtonHandle generated when the mouse wheel is rolled one notch

  • upwards.

*/