New account registrations are disabed. This website is now an archive. Read more here.

RPG Maker VX Ace    Posted November 6, 2014 by xTsukihime

Checking if any key is pressed

Introduction

Recently I had needed a way to determine whether any key was pressed on the keyboard. This was because any key could potentially be used as an event trigger, and I didn't want to assume anything about what those keys might be.

 

Without this check, the other safest way was to constantly execute the relevant methods, which may lead to reduced performance given a sufficient number of events on the map. Then I remembered there was a keyboard script available, which showed how to check the state of every key.

Features

Script call for checking whether any key is being pressed

Screenshots

    License Terms

    Attribution 3.0 Unported - You must attribute the work in the manner specified by the author or licensor. Commerical use allowed.

    Instructions

    Get it at HimeWorks!

    Leave a Reply

    xTsukihime

    • Posted about 10 years ago

    • Engine
      RPG Maker VX Ace
    • Category
      Scripting Tools
    • License
      Attribution 3.0 Unported
    • Version
      Keypress, Input

    Stats

    1,695 views

    0 comments

    Tags

    n-a