Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ReMapped Keys v. 1.0
- # VX Ace version
- # by mikb89
- # Dettagli:
- # Questo script permette di rimappare i tasti, utile se usate uno script per la
- # tastiera estesa, come quello di Keroro. Metti caso che ad esempio volete far
- # girare il vostro gioco su un cabinato, ecco, questo script sembra fatto
- # apposta per voi! xD
- # Configurazioni:
- module REMAP
- ASSIGN = {
- # Tasti direzionali (Frecce e PagSu/Giù):
- #:DOWN =>,
- #:LEFT =>,
- #:RIGHT =>,
- #:UP =>,
- #:L =>,
- #:R =>,
- # Tasti di interazione:
- :A => :NUM4, # Tasto SHIFT: quello per la corsa.
- :B => :NUM3, # Tasto Esc: menu, annulla, indietro...
- :C => :NUM2, # Tasto Invio: azione, seleziona, ok...
- # Tasti aggiuntivi:
- :X => :NUM5,
- :Y => :NUM6,
- :Z => :NUM7,
- }
- #Impostate qui su i vari tasti (dipende dallo script di tastiera estesa in uso)
- end
- #Codename: remap
- ($imported ||= {})[:mikb89_remap] = true
- # License:
- # - You can ask me to include support for other scripts as long as these scripts
- # use the $imported[script] = true;
- # - You can modify and even repost my scripts, after having received a response
- # by me. For reposting it, anyway, you must have done heavy edit or porting,
- # you can't do a post with the script as is;
- # - You can use my scripts for whatever you want, from free to open to
- # commercial games. I'd appreciate by the way if you let me know about what
- # you're doing;
- # - You must credit me, if you use this script or part of it.
- class << Input
- alias press_b4_remap press? unless method_defined?(:press_b4_remap)
- alias trigg_b4_remap trigger? unless method_defined?(:trigg_b4_remap)
- alias repeat_b4_remap repeat? unless method_defined?(:repeat_b4_remap)
- end
- module Input
- module_function
- def press?(key)
- key = REMAP::ASSIGN[key] if REMAP::ASSIGN.include?(key)
- press_b4_remap(key)
- end
- def trigger?(key)
- key = REMAP::ASSIGN[key] if REMAP::ASSIGN.include?(key)
- trigg_b4_remap(key)
- end
- def repeat?(key)
- key = REMAP::ASSIGN[key] if REMAP::ASSIGN.include?(key)
- repeat_b4_remap(key)
- end
- en
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement