Top |
void xrd_input_synth_hand_off_to_controller (XrdInputSynth *self
,guint64 controller_handle
);
self |
The XrdInputSynth |
|
controller_handle |
The index of the controller that will be used for input synth. |
void xrd_input_synth_move_cursor (XrdInputSynth *self
,XrdWindow *window
,graphene_matrix_t *controller_pose
,graphene_point3d_t *intersection
);
gboolean
xrd_input_synth_poll_events (XrdInputSynth *self
);
Must be called periodically to receive input events.
void
xrd_input_synth_reset_press_state (XrdInputSynth *self
);
Issue a button release event for every button that previously was used for a button press event, but has not been released yet.
When calling this function, also consider xrd_input_synth_reset_scroll()
.
void
xrd_input_synth_reset_scroll (XrdInputSynth *self
);
Resets the internal state of the scrolling, so the in-flight scroll distance on the touchpad is discarded.
When calling this function, also consider xrd_input_synth_reset_press_state()
guint64
xrd_input_synth_synthing_controller (XrdInputSynth *self
);
typedef struct { XrdWindow *window; graphene_point_t *position; int button; gboolean state; guint64 controller_handle; } XrdClickEvent;
A 2D mouse click event.
XrdWindow * |
The XrdWindow that was clicked. |
|
graphene_point_t * |
A graphene_point_t 2D screen position for the click. |
|
The int identifier of the mouse button. |
||
gboolean |
A gboolean that is |
|
guint64 |
A guint64 with the OpenVR handle to the controller. |
typedef struct { XrdWindow *window; graphene_point_t *position; gboolean ignore; } XrdMoveCursorEvent;
A 2D mouse move event.
Ignoring this events means only updating the cursor position in VR so it does not appear frozen, but don't actually synthesize mouse move events.
XrdWindow * |
The XrdWindow on which the cursor was moved. |
|
graphene_point_t * |
A graphene_point_t with the current 2D screen position. |
|
gboolean |
A gboolean wheather the synthesis should be ignored. |
“click-event”
signalvoid user_function (XrdInputSynth *xrdinputsynth, GdkEvent *arg1, gpointer user_data)
Flags: Run Last
“move-cursor-event”
signalvoid user_function (XrdInputSynth *xrdinputsynth, GdkEvent *arg1, gpointer user_data)
Flags: Run Last