Razish / japp

JA++ server and client modification for Jedi Academy
GNU General Public License v2.0
44 stars 30 forks source link

Keycatcher bug, crash #165

Closed Exmirai closed 10 years ago

Exmirai commented 10 years ago

if you set Keycatcher to KEYCATCH_MESSAGE and join game - crash :( without crashlog

Exmirai commented 10 years ago

P.S i would to get mouse position while i'm playing... like Crysis :D

Razish commented 10 years ago

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.

Exmirai commented 10 years ago

but when key catcher in cgame mode, i can't move too :D, will you fix that ?)

Razish commented 10 years ago

Nope, that's what it's meant to do =[

Fixed the crash in JACoders/OpenJK@fbd701aa1bdde240b8a07fb77b0f7baaac8fb154

Exmirai commented 10 years ago

oh, possible to create new... catcher that will allow to return mouse position and player will not stop moving?

Razish commented 10 years ago

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

Exmirai commented 10 years ago

eh :(