[MZ] Keyboard Rebind - v1.0

keyboardcover.jpg
Keyboard Rebind - Version 1.0
Nowis-337
​

Introduction
This plugin adds a menu rebind keyboard keys to the options menu. The player will select the keybind from a list, then pressing the new key on your keyboard to register as the new keybind. I wanted to make something that is a little simpler than Yanfly's approach of mapping out a whole keyboard visually in his MV Keyboard Config plugin.


Features
  • Movement presets: Arrow Keys, WASD, ZQSD, Customise your own!
  • Rebind to most keys on the keyboard (except for F1 - F12).
  • Make your own custom keynames to use (eg via scriptcalls).
  • Probably not compatible with other plugins that assign common events to certain keys.
  • Limitions: Cannot set more than one keys to the same function like default RPG Maker.

Screenshots
Spoiler
screenshokeyboard.jpeg

How to Use
Place in plugins folder and activated it in the plugins manager. Set the plugin parameters as desired.

Script Calls
If you are customising your own options menu, or using other plugins to modify the options menu, you can access this menu by using the scriptcall: SceneManager.push(Scene_KeyboardRebind);

Download
Download it here: https://nowis-337.itch.io/mz-keyboard-config

Terms and Credits
Free to use for non-commercial and commercial projects.
Please credit: Nowis-337


Version 1.0 - 5/09/2022 - Finished plugin! Hope it works.
How i can add this to visu menu?
I'll post these here as well as tutorial for Visustella Options Core:
Here are some screenshots on how I added to VS options core - basically the end of the day is to add something that runs these when selected: SceneManager.push(Scene_KeyboardRebind);

screenshotA.jpeg
screenshotB.jpeg
Hello, i tried to bind PdUp and PgDn to A and E (for the ZQSD setting) but it doesn't seem to work, A is somewhat still used for left :/ If i left them untouched, only E works, the other one is undefined (because A = Q on my keyboard)
I tried to bind them to O and P, same result :/

I tryed to add them under Movement preset zqsd, after up down left right, same problem.
If you are trying to set up keys to match the visustella's default page up and page down functions, use the keyname"pageup" and "pagedown".
screenshotkeyboard.jpg

Unfortunately, this plugin can't set multiple keys to the same function so the way you have it, it is only recognising PgUp and PgDn and ignoring what ever you type into the the Default Input Box

So, if you want A to have the function of PgUp:
- set the Custom Keyname to "pageup"
- Default Input (Special Key) to "Other"
- type "A" in Default Input

And delete the old config file in the save folder before testing.

I'll probably have to revamp how some of this stuff works at a later stage 😳
EDITED: now it's working perfectly <3
Greetings,

I hope this is not considered a necropost, but I wanted to make a bug report here in the official release thread for the plugin.

So if you have the movement preset options enabled and changed say, the default arrow key to WASD in game, but then press cancel twice to exit the menu, it will not change the movement. Which is correct. The game will still be using the arrow keys to control movement.

However, when you reenter the keybind config menu, the menu will show you as having WASD set for the movement keys.

Basically what is happening here is that, in game, the plugin is not visually updating the movement preset that is chosen when a player cancels out of the menu without changing anything (and in which case all the other keys changed switch back to their default settings). Again, everything works just fine from a functional perspective.

Steps to reproduce:

1. Open the keybind config menu in game.

2. Change the Movement Preset to anything other than what it is set to be by default.

3. Press "cancel button" twice to exit the menu. Observe that no changes to keybindings were saved.

4. Reenter the keybind config menu. Observe that the plugin states your Movement Preset to be something that it is currently not. i.e., you're still using the default functionally, but visually it says you have another setting enabled.
Greetings,

I hope this is not considered a necropost, but I wanted to make a bug report here in the official release thread for the plugin.

So if you have the movement preset options enabled and changed say, the default arrow key to WASD in game, but then press cancel twice to exit the menu, it will not change the movement. Which is correct. The game will still be using the arrow keys to control movement.

However, when you reenter the keybind config menu, the menu will show you as having WASD set for the movement keys.

Basically what is happening here is that, in game, the plugin is not visually updating the movement preset that is chosen when a player cancels out of the menu without changing anything (and in which case all the other keys changed switch back to their default settings). Again, everything works just fine from a functional perspective.

Steps to reproduce:

1. Open the keybind config menu in game.

2. Change the Movement Preset to anything other than what it is set to be by default.

3. Press "cancel button" twice to exit the menu. Observe that no changes to keybindings were saved.

4. Reenter the keybind config menu. Observe that the plugin states your Movement Preset to be something that it is currently not. i.e., you're still using the default functionally, but visually it says you have another setting enabled.
Thanks for detailed bug report! I've updated it and should be fixed now.
Thanks for detailed bug report! I've updated it and should be fixed now.
Awesome! Cheers!

Edit: Just got the latest version and tested it out. Looks like the bug here is only half fixed. It will now properly switch to the default both functionally and visually if you scroll down and press the [Ok Button] on the Cancel option. However, if you press the [Cancel Button] twice after making a change to the movement preset (to quick-exit the keybind scene instead of scrolling down to cancel), and then go back into the Keybind Config menu option, it will still show your movement preset as whatever you changed it to (only visually; functionally, everything is working correctly and all bindings were reverted to the default / whatever you had it set to before the changes made when you canceled out of the menu).

Just wanted to give you a heads up. Thank you for your work on this amazing plugin!
Awesome! Cheers!

Edit: Just got the latest version and tested it out. Looks like the bug here is only half fixed. It will now properly switch to the default both functionally and visually if you scroll down and press the [Ok Button] on the Cancel option. However, if you press the [Cancel Button] twice after making a change to the movement preset (to quick-exit the keybind scene instead of scrolling down to cancel), and then go back into the Keybind Config menu option, it will still show your movement preset as whatever you changed it to (only visually; functionally, everything is working correctly and all bindings were reverted to the default / whatever you had it set to before the changes made when you canceled out of the menu).

Just wanted to give you a heads up. Thank you for your work on this amazing plugin!
Ah got it, I think I know where to fix it, I'll see if I can sort it out after work tonight.
Ah got it, I think I know where to fix it, I'll see if I can sort it out after work tonight.
Thank you! I appreciate your work and your plugin is awesome!
Thank you! I appreciate your work and your plugin is awesome!
ok I think this time round it should be fixed!

I did attempt to make a more recent plugin that simplifies the whole system and includes keyboard and controller together, and less clunky to use. I just haven't had the chance to post it onto the forums yet. Feel free to see if it suits your needs too 🙂

https://nowis-337.itch.io/rpg-maker-mz-input-config
Finally we can rebind keys! Thank you.
ok I think this time round it should be fixed!

I did attempt to make a more recent plugin that simplifies the whole system and includes keyboard and controller together, and less clunky to use. I just haven't had the chance to post it onto the forums yet. Feel free to see if it suits your needs too 🙂

https://nowis-337.itch.io/rpg-maker-mz-input-config
Oh snap! I didn't know you had made a plugin combining the two! Thank you again!

Original thread: https://forums.rpgmakerweb.com/threads/mz-keyboard-rebind-v1-0.151098/