haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Implement our own InputMgr #81

Closed haekb closed 3 years ago

haekb commented 4 years ago

Almost similar to the giant hack I was trying to do before...almost.

I think I found the InputMgr's struct while reverse engineering the directinput pointers. I could just implement my own InputMgr cleanly in the engine.

Probably the best option I've got.

haekb commented 4 years ago

Everything is bindable (Except gamepads!), but mouse wheel doesn't show up (or bind anymore hmmm). But it sticks and doesn't clear after leaving controls. So I think it's an issue with GetDeviceObjects.

haekb commented 4 years ago

Everything is actually bindable now. Mostly sticks aside from controller axis'.

I've got a new config save function in there to prevent the game from crashing and wiping autoexec.cfg.

I need to hard code some options extra binds that aren't possible in the new system. There will be another ticket for gamepad accessibility.