joetex / stream-racing-wheel

Logitech G920 Racing Wheel Overlay for Streaming, as a React Webpage
24 stars 10 forks source link

G923 Profil #13

Open QuickoAbdul opened 5 months ago

QuickoAbdul commented 5 months ago

Does anyone have the json file for a g923 profile?

QuickoAbdul commented 5 months ago

I made a profile for the g923 with shifter using the photo of the g920, unfortunately the reverse gear does not work and for the d-pad the arrows are detected as axis which is why they are always activated. All that's missing is to replace the image of the g920 with that of the g923

{
  "btnWheel": 0,
  "btnGas": 2,
  "invert/btnGas": false,
  "btnBrake": 5,
  "btnClutch": 1,
  "btnGearReverse": 28,
  "invert/btnGearReverse": false,
  "btnGear1": 22,
  "invert/btnGear1": false,
  "btnGear2": 23,
  "btnGear3": 24,
  "btnGear4": 25,
  "btnGear5": 26,
  "btnGear6": 27,
  "btnGear7": 34,
  "btnWheel_DUp": 9,
  "btnWheel_DDown": 9,
  "btnWheel_DLeft": 9,
  "btnWheel_DRight": 9,
  "btnWheel_Back": 17,
  "btnWheel_Start": 16,
  "btnWheel_X": 11,
  "btnWheel_Y": 13,
  "btnWheel_A": 10,
  "btnWheel_B": 12,
  "btnWheel_RSB": 20,
  "btnWheel_LSB": 21,
  "btnWheel_LB": 15,
  "btnWheel_RB": 14,
  "btnWheel_L3": 29,
  "btnWheel_R3": 30,
  "btnWheel_L4": 31,
  "btnWheel_R4": 32,
  "imgWheel": "/stream-racing-wheel/g920/wheel.png",
  "imgWheel_DUp": "/stream-racing-wheel/g920/DUp.png",
  "imgWheel_DDown": "/stream-racing-wheel/g920/DDown.png",
  "imgWheel_DLeft": "/stream-racing-wheel/g920/DLeft.png",
  "imgWheel_DRight": "/stream-racing-wheel/g920/DRight.png",
  "imgWheel_Back": "/stream-racing-wheel/g920/Back.png",
  "imgWheel_Start": "/stream-racing-wheel/g920/Start.png",
  "imgWheel_X": "/stream-racing-wheel/g920/X.png",
  "imgWheel_Y": "/stream-racing-wheel/g920/Y.png",
  "imgWheel_A": "/stream-racing-wheel/g920/A.png",
  "imgWheel_B": "/stream-racing-wheel/g920/B.png",
  "imgWheel_RSB": "/stream-racing-wheel/g920/RSB.png",
  "imgWheel_LSB": "/stream-racing-wheel/g920/LSB.png",
  "imgWheel_LB": "/stream-racing-wheel/g920/LB.png",
  "imgWheel_RB": "/stream-racing-wheel/g920/RB.png",
  "imgWheel_L3": "/stream-racing-wheel/g920/LB.png",
  "imgWheel_R3": "/stream-racing-wheel/g920/RB.png",
  "imgWheel_L4": "/stream-racing-wheel/g920/LB.png",
  "imgWheel_R4": "/stream-racing-wheel/g920/RB.png",
  "imgPedalBase": "/stream-racing-wheel/g920/pedals.png",
  "imgGas": "/stream-racing-wheel/g920/gas.png",
  "imgBrake": "/stream-racing-wheel/g920/brake.png",
  "imgClutch": "/stream-racing-wheel/g920/clutch.png",
  "imgShifterBase": "/stream-racing-wheel/g920/shifter-base.png",
  "imgShifter": "/stream-racing-wheel/g920/shifter.png"
}
joetex commented 5 months ago

I can add a deadzone setting for button masks that are axis type if that will help. Basically if the absolute axis value is less than X make it hidden. For instance axis values are usually from -1.0 to 1.0. If we make X=0.1, this would mean everything between -0.1 to 0.1 be considered hidden.

Also, can you describe what the "reverse" looks like on g923? On the g920, you have to push the shifter in and then move it to a specific gear, which was a bit obtuse. I always just bound reverse to a specific button on the wheel.

QuickoAbdul commented 5 months ago

I am working on a demo with the g923 all that is missing is to have the mapping done for the new keys of the g923, I will show you a little demo of the reverse which does not work, there is no animation (I use the shifter of the g920 because they produced only one) and dpad which is recognized in Axis

https://github.com/joetex/stream-racing-wheel/assets/90459692/68db2fc5-ffb9-4525-860e-65be6dc29fb8

joetex commented 5 months ago

https://github.com/joetex/stream-racing-wheel/assets/90459692/68db2fc5-ffb9-4525-860e-65be6dc29fb8

Looks like the dpads start at 1.0 value and go down to -1.0 when pressed, which is a bit wierd.

The reverse will need new shifter animation, maybe I can make it shrink the shifter or something.

QuickoAbdul commented 5 months ago

Ok I've made quite a bit of progress on the project little by little I did the animation all I'm missing is the Dpad to do I tested it on Gamepad Tester and there it also detects it as axis so I I retained the data which gave me: dup -1.000 dright -0.42857 ddown 0.14286 dleft 0.71429 I'll try to do a something to make it work.

Thank you very much for answering my questions

joetex commented 5 months ago

If you want to do a PR, just move the custom images to a new folder and link to them in your custom profile. You can add the profile JSON to be listed with the g920 profile. So both will be compatible.

On Tue, Apr 16, 2024, 8:57 AM Abdulrahman @.***> wrote:

Ok I've made quite a bit of progress on the project little by little I did the animation all I'm missing is the Dpad to do I tested it on Gamepad Tester and there it also detects it as axis so I I retained the data which gave me: dup -1.000 dright -0.42857 ddown 0.14286 dleft 0.71429 I'll try to do a something to make it work.

Thank you very much for answering my questions

— Reply to this email directly, view it on GitHub https://github.com/joetex/stream-racing-wheel/issues/13#issuecomment-2059162758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMJI7G6EDMZM5DNCOZDFR3Y5UU45AVCNFSM6AAAAABGHDFNN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGE3DENZVHA . You are receiving this because you commented.Message ID: @.***>