GrimReaper Posted September 23, 2012 Share Posted September 23, 2012 function funcContinueToDriveOrWalk(varContinueToDriveOrWalk) if (varContinueToDriveOrWalk == true) then showCursor(true) else showCursor(false) end end bindKey ("mouse2","down",funcContinueToDriveOrWalk,true) bindKey ("mouse2","up",funcContinueToDriveOrWalk,false) this only hides the cursor when i press right button, but it doesnt show the cursor when i release it Link to comment
Entity Posted September 23, 2012 Share Posted September 23, 2012 function funcContinueToDriveOrWalk() if (isCursorShowing() == true) then showCursor(false) return else showCursor(true) return end end bindKey ("mouse2","both",funcContinueToDriveOrWalk) Link to comment
TAPL Posted September 23, 2012 Share Posted September 23, 2012 function funcContinueToDriveOrWalk(_,varContinueToDriveOrWalk) if (varContinueToDriveOrWalk == "down") then showCursor(true) else showCursor(false) end end bindKey("mouse2","both",funcContinueToDriveOrWalk) Link to comment
GrimReaper Posted September 23, 2012 Author Share Posted September 23, 2012 @Entity: thanks it works perfectly @TAPL: your's doesn't work to me Link to comment
TAPL Posted September 23, 2012 Share Posted September 23, 2012 @Entity: thanks it works perfectly@TAPL: your's doesn't work to me My code work and i have test it before i post it. Entity code will bug the Cursor (if you press right click and the Cursor was already showing). How it will be bugged? 1- Open freeroam (F1). 2- Press right button and don't release it. 3- Close freeroam (F1). 4- Release the right button. 5- Watch the result. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now