NGE IDE

hasKeycode

function

Checks if an event has any of the provided keycodes

Signature

typescript
function hasKeycode(event: KeyboardEvent, ...codes: number[]): boolean

Parameters

  • event (KeyboardEvent)
  • ...codes (number[])

Returns

boolean