Jump to content

Showing Cursor


Yeleha

Recommended Posts

I have a simple script to show the cursor on bind, but I don't want any binds ( except the bind to switch the cursor ) to be usable when it's shown.

function toggleCursor()
	if (isCursorShowing()) then
		showCursor(false)
		guiSetInputMode('allow_binds')
	else
		showCursor(true, true)
		guiSetInputMode('no_binds')
	end
end
bindKey("m", "down", "togglecursor")

This works but the M-key is not usable.

Edited by Derbo
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...