The Mouse control cannot be used in the same Scene as other controls including Buttons. Ensure you create a scene exclusively for it.
Mouse input allows you to get mouse events over video. When a Mouse control is added to a scene it will create a rectangle that covers the video. When a Participant moves their mouse over the video events can be sent down to your Game or Application.
This control is useful for drawing or pointer style experiences.
The Mouse control has a number of properties that change its behavior:
mousedown(default) - this will only send mouse move events during a mousedown event
alwaysmouse move events are sent on hover and during mousedown
nevernever send mouse move events. You will still receive click events.
The mouse control is unique in that you cannot place the mouse control on a grid. This is because when it is added to a scene it loads over the video and is automatically sized to match the size of the video.
Regardless of device or screen size, screen controls operates on a coordinate system where the bottom left of the video is X: 0, Y: 0 and the top right is X: 1, X: 1. The middle of the video is 0.5 in both axises.
When you receive coordinates from a mouse event you will usually need to translate this to a location within your Game or Application world. Doing this is quite easy.
First make sure that you're using the same coordinate system as us. The Origin should be at the bottom left of your window.
Then you can apply the following to each coordinate to translate them into your coordinate space: