Closed Exmirai closed 10 years ago
P.S i would to get mouse position while i'm playing... like Crysis :D
You'll have to set key catcher to cgame then. I'll add a SetMousePos so your cursor can go to the middle of the screen when you open your custom menu.
At the moment, there's a missing texture for the cursor. All of that code is very incomplete.
but when key catcher in cgame mode, i can't move too :D, will you fix that ?)
Nope, that's what it's meant to do =[
Fixed the crash in JACoders/OpenJK@fbd701aa1bdde240b8a07fb77b0f7baaac8fb154
oh, possible to create new... catcher that will allow to return mouse position and player will not stop moving?
The cgame mouse position is only updated from the engine if keyCatcher & KEYCATCH_CGAME
returns true
I could allow JPLua GetMousePos to always return the mouse position, but it'd always return the same thing because it'd never get updated.
I think you'll have to make do with KEYCATCH_CGAME
eh :(
if you set Keycatcher to KEYCATCH_MESSAGE and join game - crash :( without crashlog