载入中...
搜索中...
未找到
Mouse.cpp
浏览该文件的文档.
38 cls.addFunc("getMovementX", [](Mouse *m) -> float { return m ? float(m->getMovementX()) : 0.f; });
39 cls.addFunc("getMovementY", [](Mouse *m) -> float { return m ? float(m->getMovementY()) : 0.f; });
Queries and manipulates the mouse cursor; creates custom cursors.
Definition Mouse.h:20
virtual bool getRelativeMode() const =0
True when relative mouse mode is active.
float getWheelY() const
Vertical scroll from the latest platform pump; event-thread read, non-consuming.
Definition WheelInput.cpp:52
float getWheelX() const
Horizontal scroll from the latest platform pump; event-thread read, non-consuming.
Definition WheelInput.cpp:51
virtual bool setRelativeMode(bool relative)=0
Enables relative mouse mode (hidden cursor, motion deltas).
virtual void setGrabbed(bool grab)=0
Confines the cursor to the window when grab is true.
Definition Cursor.cpp:6
ControlEdit button(const char *label, float width=0.f, float height=0.f)
Shared immediate renderer for retained and EditorHost buttons.
Definition ControlPrimitives.h:15