Logitech Gamepad with GameInput API

Previous topic - Next topic

MrPlow

Hi

Has anyone got a Logitech working with the gameinput API

I would think Its very similar to xbox but I dont have a wired xbox controller to test with...

I am using with

Code (glbasic) Select


        // a game that support both small and big profiles can been controlled like this (here checking LEFT STICK and DPAD).
        L=GameInput.Left()+GameInput.LeftStick_Left();
        R=GameInput.Right()+GameInput.LeftStick_Right();
        U=GameInput.Up()+GameInput.LeftStick_Up();
        D=GameInput.Down()+GameInput.LeftStick_Down();

IF L>.6 THEN ....


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

What is the technical name of its? There is a GameInput.GetDeviceName$() (not home, but something like that). Then I'm can detect that name and map it to use xbox layout. It'd do the under GameInput.update().

Also don't forget do a GameInput.update() before polling.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

It says it is called 'unknown'
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

What is its named when using GEYJOYNAME$() (if I'm remember the official command). I'm need the name or it. I'm still not home.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

#4
"Gamepad F310 (Controller)" when using GetJoyname$
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

Hopefully the layout is same as Xbox since im dont own that one. Mostly the triggers can mapped different. Im ADD that later today.

You do can still test it using keyboard until then.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

checkout v1.3.2.

Im do no longer checking the controller name when polling in any of those commands, but can still been checked by GameInput.GetPlayerName$() (which was the correct function for checking original name).

Then im thinks its better to remap eventuelly problem controller directly if required.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/