Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.platform.glfw.Application.MouseEvent class

Mouse event

Enums

class Button: LEFT = 0 MIDDLE = 2 RIGHT = 1
Mouse button
class Modifier: SHIFT = 1 CTRL = 2 ALT = 4 SUPER = 8
Modifier

Properties

accepted: bool get set
Accepted status of the event
button: Button get
Button
modifiers: InputEvent.Modifier get
Modifiers
position: Vector2i get
Position