Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Client side:
- Possibility 1:
- function addBind()
- bindKey ("X", "down", showTheCursor)
- function showTheCursor()
- if (not isCursorShowing()) then
- showCursor(true)
- elseif (isCursorShowing()) then
- showCursor(false)
- end
- end
- addEventHandler ( "onResourceStart", getRootElement(), addBind )
- Possibility 2:
- function showTheCursor()
- showCursor(not isCursorShowing())
- end
- bindKey ( "X", "down", showTheCursor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement