ultimate-angel-zerachiel/www/js/plugins/AltKeyPatch.js
2024-01-17 11:38:37 -06:00

54 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*=============================================================================
AltKeyPatch.js
----------------------------------------------------------------------------
(C)2020 Triacontane
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
----------------------------------------------------------------------------
Version
1.0.0 2020/10/15 初版
----------------------------------------------------------------------------
[Blog] : https://triacontane.blogspot.jp/
[Twitter]: https://twitter.com/triacontane/
[GitHub] : https://github.com/triacontane/
=============================================================================*/
/*:
* @plugindesc AltKeyPatchPlugin
* @author triacontane
*
* @help AltKeyPatch.js
*
* In RPGMaker MV/MZ, the Ctrl and Alt keys have the same behavior.
* It is designed to be assigned.
* In this patch, it is separated and pressing the Alt key no
* longer behaves like the Ctrl key.
*
* Instead, the content of the code "alt" is assigned.
* (This is used when you can specify the contents of the code as a plugin)
*
* This plugin is released under the MIT License.
*/
/*:ja
* @plugindesc Altキー分離パッチ
* @author トリアコンタン
*
* @help AltKeyPatch.js
* ツクールMV/MZでは、CtrlキーとAltキーには同一の動作が
* 割り当てられる仕様になっています。
* 本パッチではそれを分離し、Altキーを押下してもCtrlキーの挙動をしなくなります。
*
* 代わりに『alt』というコードの内容が割り当てられます。
* (プラグイン等で指定可能な場合に使います)
*
* 利用規約:
* 作者に無断で改変、再配布が可能で、利用形態商用、18禁利用等
* についても制限はありません。
* このプラグインはもうあなたのものです。
*/
(function () {
"use strict";
Input.keyMapper[18] = "alt";
})();