event.device

Type InputDevice
Event key
Revision Release 2024.3703
Keywords key, device

Overview

Provides access to the device that the key event came from.

This is intended to be used by multiplayer games where multiple input devices will provide the same keys/buttons. Essentially, this property can be used to differentiate key events coming from different devices/players.

Gotchas