KeyLocation

View source

Defines numeric locations for distinguishing physical keyboard sides.

KeyLocation.Standard (0) identifies a key with no left/right distinction. KeyLocation.Right (1) and KeyLocation.Left (2) identify the corresponding physical side. Use these values when an input adapter needs to keep otherwise matching keys, such as left and right modifiers, separate.

Examples

import { KeyLocation } from '@wimaengine/keyboard'

const modifierLocation = KeyLocation.Left

Variants