Windows virtual-key codes 1 to 255. A key must be registered before Input.IsKeyPressed reports it; unregistered keys return false. Polling a few keys once per frame is cheap.
Windows virtual-key code, for example 75 for K. 1 to 255.
Returns Boolean
true while the registered key is held and Fallout 76 is the foreground process. Reports the held state; for one action per press, compare with the previous frame's value.
Example
var wasPressed:Boolean = false;
function onEnterFrame(event:Event):void {
var pressed:Boolean = __SFCodeObj.call("Input.IsKeyPressed", 75);
if (pressed && !wasPressed) {
// K was just pressed.
}
wasPressed = pressed;
}
Windows virtual-key code, for example 75 for K. 1 to 255.
Returns Boolean
Hides the key from Fallout 76's window messages and raw keyboard input. Input.IsKeyPressed still reports it. Returns false if the game window is not available yet; the key stays recorded and the next Input.SuppressKey call retries.