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

    Function allInputDevicesToAllInputs

    • Reads all current inputs from all input devices.

      Parameters

      • allInputDevices: Readonly<
            Partial<
                { keyboard: Readonly; mouse: Readonly } & Partial<
                    Record<
                        GamepadInputDeviceKey,
                        Readonly<
                            {
                                currentInputs: Readonly<
                                    Record<
                                        string,
                                        Readonly<
                                            {
                                                details: ...;
                                                deviceKey: ...;
                                                deviceName: ...;
                                                deviceType: ...;
                                                inputName: ...;
                                                inputValue: ...;
                                            },
                                        >,
                                    >,
                                >;
                                deviceDetails: SerializedGamepad;
                                deviceKey: GamepadInputDeviceKey;
                                deviceName: string;
                                deviceType: Gamepad;
                            },
                        >,
                    >,
                >,
            >,
        >

      Returns DeviceInputValue[]