input-device-handler - v9.0.1
    Preparing search index...

    Variable deviceHandlerEventConstructorsByTypeConst

    deviceHandlerEventConstructorsByType: {
        "all-devices-updated": TimedEventConstructor<
            Partial<
                { keyboard: Readonly; mouse: Readonly } & Partial<
                    Record<
                        GamepadInputDeviceKey,
                        Readonly<
                            {
                                currentInputs: Readonly<Record<string, Readonly<(...)>>>;
                                deviceDetails: SerializedGamepad;
                                deviceKey: GamepadInputDeviceKey;
                                deviceName: string;
                                deviceType: Gamepad;
                            },
                        >,
                    >,
                >,
            >,
            "all-devices-updated",
        >;
        "current-inputs-changed": TimedEventConstructor<
            CurrentInputsChangedOutput,
            "current-inputs-changed",
        >;
        "devices-removed": TimedEventConstructor<
            DevicesRemovedOutput,
            "devices-removed",
        >;
        "new-devices-added": TimedEventConstructor<
            NewDevicesAddedOutput,
            "new-devices-added",
        >;
    } = ...

    An object that maps all possible InputDeviceHandler event strings to their respective event constructors.

    Type declaration

    • all-devices-updated: TimedEventConstructor<
          Partial<
              { keyboard: Readonly; mouse: Readonly } & Partial<
                  Record<
                      GamepadInputDeviceKey,
                      Readonly<
                          {
                              currentInputs: Readonly<Record<string, Readonly<(...)>>>;
                              deviceDetails: SerializedGamepad;
                              deviceKey: GamepadInputDeviceKey;
                              deviceName: string;
                              deviceType: Gamepad;
                          },
                      >,
                  >,
              >,
          >,
          "all-devices-updated",
      >
    • current-inputs-changed: TimedEventConstructor<CurrentInputsChangedOutput, "current-inputs-changed">
    • devices-removed: TimedEventConstructor<DevicesRemovedOutput, "devices-removed">
    • new-devices-added: TimedEventConstructor<NewDevicesAddedOutput, "new-devices-added">