gennariarmando / gta2-frontend-fix

FrontendFix is a plugin that enhances, improves and makes you enjoy GTA2 on modern machines.
25 stars 2 forks source link

Fixes for keyboard controls #8

Open christoffer00 opened 6 months ago

christoffer00 commented 6 months ago

Added two patches with fixes for keyboard controls.

The first one fixes an issue were it was not possible to select certain keys, e.g. the arrows keys, when configuring keyboard controls in-game. I have tested it quite a bit but I'm not certain I got it completely right. I used the dinput.h file from the glfw project as reference https://github.com/glfw/glfw/blob/master/deps/mingw/dinput.h. I think I excluded all of the keys mentioned in the NOTTHISKEY macro but maybe I missed some.

The second adds the default controls which are present in the GTA2 Manager as options which can be selected in the settings file FrontendFixII.ini.

GTA2 Manager

The settings file is not present in the repository but something similar to this could maybe be added to the settings file in the release package:

; Select default keyboard controls.
; 0 = FrontendFix
; 1 = Original
; 2 = Classic
DefaultControls = 0