TcrSdk-Windows V1.0
mouse.h
Go to the documentation of this file.
1#ifndef TCRSDK_MOUSE_H_
2#define TCRSDK_MOUSE_H_
3
4#include<stdint.h>
5
9 class Mouse
10 {
11 public:
15 enum class MouseKeyType {
19 LEFT,
23 RIGHT,
27 MIDDLE,
31 FORWARD,
36 };
37
41 enum class CursorStyle {
45 NORMAL,
46
50 HUGE
51 };
52
61 virtual void SetMouseCursorStyle(const CursorStyle& cursor_style) const = 0;
62
70 virtual void OnMouseKey(const MouseKeyType& key, bool down) const = 0;
71
77 virtual void OnMouseScroll(float delta) const = 0;
78
97 virtual void OnMouseMoveTo(int32_t x, int32_t y) const = 0;
98 };
99
100#endif
This interface is used to interact with the virtual Mouse device on the server.
Definition mouse.h:10
MouseKeyType
General mouse button types.
Definition mouse.h:15
@ RIGHT
The right mouse button.
@ MIDDLE
The middle mouse button (scroll wheel)
@ BACKWARD
The back side button.
@ LEFT
The left mouse button.
@ FORWARD
The forward side button.
virtual void OnMouseScroll(float delta) const =0
Rotate the scroll wheel of the cloud mouse.
virtual void OnMouseMoveTo(int32_t x, int32_t y) const =0
After you get the coordinates of the local View, you need to convert the coordinates to the coordinat...
virtual void OnMouseKey(const MouseKeyType &key, bool down) const =0
Trigger a click event of the cloud mouse.
virtual void SetMouseCursorStyle(const CursorStyle &cursor_style) const =0
Set the cursor style.
CursorStyle
The style of the cloud cursor.
Definition mouse.h:41
@ NORMAL
The default cursor style.
@ HUGE
The big cursor style.