Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
make mouse visible when button is pressed |
||||
|
You can set a variable called "mouseVIs" to false in a Before First Drawing Do Something behavior and then on the key you want to use to make the mouse visible run an Execute Java Script action with this code: var s = ccbGetCopperCubeVariable("mouseVis"); if (s == "true") { ccbSetCursorVisible("false"); ccbSetCopperCubeVariable("mouseVis", "false"); } else { ccbSetCursorVisible("true"); ccbSetCopperCubeVariable("mouseVis", "true"); } This will toggle the mouse visible or invisible. |
|