Input Forge - v0.3.1
    Preparing search index...

    Enumeration InputDeviceType

    Identifies the type of input device currently being used. Useful for displaying appropriate button prompts to the user.

    import { InputDeviceType } from '@happy-pixels/input-forge';

    manager.activeInputDevice$.subscribe((device) => {
    if (device === InputDeviceType.Xbox) {
    showXboxPrompts();
    }
    });
    Index

    Enumeration Members

    Keyboard: "keyboard"

    Keyboard input detected

    OtherController: "other_controller"

    Other gamepad/controller detected

    PlayStation: "playstation"

    PlayStation controller detected (DualShock 3/4, DualSense)

    Xbox: "xbox"

    Xbox controller detected (includes Xbox 360, Xbox One, Xbox Series)