Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support keyboard remapping #48

Open
nmlgc opened this issue Aug 17, 2023 · 0 comments
Open

Support keyboard remapping #48

nmlgc opened this issue Aug 17, 2023 · 0 comments
Labels
Enhancement New feature or request Input Keyboard and joypad input. ~≤0.66 pushes Projected number of pushes needed. Might turn out to get more expensive!

Comments

@nmlgc
Copy link
Owner

nmlgc commented Aug 17, 2023

The game does support remapping the joypad, after all. The InputConfig structure also suggests that keyboard remapping was even planned at some point in development:

IConfig.bIsUsed[DIK_ESCAPE] = TRUE;
IConfig.bIsUsed[DIK_RETURN] = TRUE;
IConfig.bIsUsed[DIK_UP] = TRUE;
IConfig.bIsUsed[DIK_DOWN] = TRUE;
IConfig.bIsUsed[DIK_LEFT] = TRUE;
IConfig.bIsUsed[DIK_RIGHT] = TRUE;
IConfig.KeyUp = DIK_NUMPAD8; IConfig.bIsUsed[DIK_NUMPAD8] = TRUE;
IConfig.KeyDown = DIK_NUMPAD2; IConfig.bIsUsed[DIK_NUMPAD2] = TRUE;
IConfig.KeyLeft = DIK_NUMPAD4; IConfig.bIsUsed[DIK_NUMPAD4] = TRUE;
IConfig.KeyRight = DIK_NUMPAD6; IConfig.bIsUsed[DIK_NUMPAD6] = TRUE;
IConfig.KeyULeft = DIK_NUMPAD7; IConfig.bIsUsed[DIK_NUMPAD7] = TRUE;
IConfig.KeyURight = DIK_NUMPAD9; IConfig.bIsUsed[DIK_NUMPAD9] = TRUE;
IConfig.KeyDLeft = DIK_NUMPAD1; IConfig.bIsUsed[DIK_NUMPAD1] = TRUE;
IConfig.KeyDRight = DIK_NUMPAD3; IConfig.bIsUsed[DIK_NUMPAD3] = TRUE;
IConfig.KeyTama = DIK_Z; IConfig.bIsUsed[DIK_Z] = TRUE;
IConfig.KeyBomb = DIK_X; IConfig.bIsUsed[DIK_X] = TRUE;
IConfig.KeyShift = DIK_LSHIFT; IConfig.bIsUsed[DIK_LSHIFT] = TRUE;

This would mostly be about adding the UI for it.

@nmlgc nmlgc added the Enhancement New feature or request label Aug 17, 2023
@nmlgc nmlgc added the Input Keyboard and joypad input. label Aug 31, 2023
@nmlgc nmlgc added the ~≤0.66 pushes Projected number of pushes needed. Might turn out to get more expensive! label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Input Keyboard and joypad input. ~≤0.66 pushes Projected number of pushes needed. Might turn out to get more expensive!
Projects
None yet
Development

No branches or pull requests

1 participant