Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

[Released] gInputControllers - multi joystick and force feedback manager

Discussion in 'Assets and Asset Store' started by ghiboz, Aug 9, 2017.

  1. LIVAI10

    LIVAI10

    Joined:
    Nov 4, 2019
    Posts:
    7
    Edit : I don't have the device actually.. i'll send u a new GIC.log content later tomorrow..

    Sure ! Sample !

    GIC.log content :


    [2022-02-14 17:31:12.169] [gInput logging] [info] gInput Initialization
    [2022-02-14 17:31:12.174] [gInput logging] [info] nitInputSystem gInputTest true
    [2022-02-14 17:31:12.174] [gInput logging] [info] InitInputSystem v2 35654394
    [2022-02-14 17:31:12.174] [gInput logging] [info] InitDirectInput
    [2022-02-14 17:31:12.207] [gInput logging] [info] InitDirectInput step 01
    [2022-02-14 17:31:12.454] [gInput logging] [info] InitDirectInput step 02
    [2022-02-14 17:31:12.454] [gInput logging] [info] InitKey
    [2022-02-14 17:31:12.460] [gInput logging] [info] InitKey END 0
    [2022-02-14 17:31:12.460] [gInput logging] [info] InitDirectInput step 03
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 04
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 05
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 06
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 07
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput END 0
    [2022-02-14 17:31:17.886] [gInput logging] [info] gLog ends job!
     
  2. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    what kind of device you have?
    in this log there is no device attached, right?
     
  3. LIVAI10

    LIVAI10

    Joined:
    Nov 4, 2019
    Posts:
    7
    Thanks for your time..

    It work in a build, but not in the editor now ..

    The log is from the build (but of course in a build it work now!) .. :

    [2022-02-14 17:31:12.169] [gInput logging] [info] gInput Initialization
    [2022-02-14 17:31:12.174] [gInput logging] [info] nitInputSystem gInputTest true
    [2022-02-14 17:31:12.174] [gInput logging] [info] InitInputSystem v2 35654394
    [2022-02-14 17:31:12.174] [gInput logging] [info] InitDirectInput
    [2022-02-14 17:31:12.207] [gInput logging] [info] InitDirectInput step 01
    [2022-02-14 17:31:12.454] [gInput logging] [info] InitDirectInput step 02
    [2022-02-14 17:31:12.454] [gInput logging] [info] InitKey
    [2022-02-14 17:31:12.460] [gInput logging] [info] InitKey END 0
    [2022-02-14 17:31:12.460] [gInput logging] [info] InitDirectInput step 03
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 04
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 05
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 06
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput step 07
    [2022-02-14 17:31:12.495] [gInput logging] [info] InitDirectInput END 0
    [2022-02-14 17:31:17.886] [gInput logging] [info] gLog ends job!
    [2022-02-15 18:47:15.617] [gInput logging] [info] gInput Initialization
    [2022-02-15 18:47:15.620] [gInput logging] [info] nitInputSystem gInputTest true
    [2022-02-15 18:47:15.621] [gInput logging] [info] InitInputSystem v2 203124
    [2022-02-15 18:47:15.621] [gInput logging] [info] InitDirectInput
    [2022-02-15 18:47:15.626] [gInput logging] [info] InitDirectInput step 01
    [2022-02-15 18:47:15.799] [gInput logging] [info] InitDirectInput step 02
    [2022-02-15 18:47:15.799] [gInput logging] [info] InitKey
    [2022-02-15 18:47:15.805] [gInput logging] [info] InitKey END 0
    [2022-02-15 18:47:15.805] [gInput logging] [info] InitDirectInput step 03
    [2022-02-15 18:47:15.818] [gInput logging] [info] Enum Joy #0
    [2022-02-15 18:47:15.818] [gInput logging] [info] Name: TS-XW Racer
    [2022-02-15 18:47:15.821] [gInput logging] [info] Callback_01 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] Callback_02 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] Callback_03 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] ObjCallback_01 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] ObjCallback_01 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] ObjCallback_01 0
    [2022-02-15 18:47:15.821] [gInput logging] [info] ObjCallback_01 0
    [2022-02-15 18:47:15.822] [gInput logging] [info] Callback_04 0
    [2022-02-15 18:47:15.822] [gInput logging] [info] FF found!
    [2022-02-15 18:47:15.981] [gInput logging] [info] Callback_05 0
    [2022-02-15 18:47:16.002] [gInput logging] [info] InitDirectInput step 04
    [2022-02-15 18:47:16.002] [gInput logging] [info] InitDirectInput step 05
    [2022-02-15 18:47:16.004] [gInput logging] [info] InitDirectInput step 06
    [2022-02-15 18:47:16.004] [gInput logging] [info] InitDirectInput step 07
    [2022-02-15 18:47:16.004] [gInput logging] [info] Some FF is attached at #0
    [2022-02-15 18:47:16.004] [gInput logging] [info] Effect started at #0
    [2022-02-15 18:47:16.004] [gInput logging] [info] InitDirectInput END 0
    [2022-02-15 18:49:15.768] [gInput logging] [info] gLog ends job!
     
  4. LIVAI10

    LIVAI10

    Joined:
    Nov 4, 2019
    Posts:
    7
  5. Jalkku

    Jalkku

    Joined:
    Jan 1, 2014
    Posts:
    8
    Occasionally does not recognize some controllers. Sometimes restarting the game helps, sometimes not. Any clue how to fix? They are not logged into either of the log files.
     
  6. malak

    malak

    Joined:
    Jan 23, 2014
    Posts:
    65
    Hello , is it working for moza R9 base ?
     
  7. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    yes, it works!

    photo_2023-04-12_23-40-54.jpg
     
  8. MaxDeveloping

    MaxDeveloping

    Joined:
    Nov 30, 2019
    Posts:
    5
    Heyo ghiboz, do you know what could be the reason for gic to not show any input devices? It does detect the device being plugged and unplugged but doesn't show them in the devicelist.
     
  9. joelprogrammer

    joelprogrammer

    Joined:
    Oct 15, 2020
    Posts:
    5
    Good morning,
    ginput controller recognizes my t248 thrusmater steering wheel well but how to make it vibrate.
    I am a beginner thank you very much for your help.
     
  10. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    to vibrate I suggest to use a function like `sin` or `cos` and send the value to the feedback, you can change frequency and magnitude of the `sin` to make it vibrate as you like
     
  11. joelprogrammer

    joelprogrammer

    Joined:
    Oct 15, 2020
    Posts:
    5
    I will try this way. But since I'm a beginner I might come back to you.
    I will still try to find it.
    thank you ghiboz
     
  12. joelprogrammer

    joelprogrammer

    Joined:
    Oct 15, 2020
    Posts:
    5
    i'm sorry but i dont understand.

    In first, where is the feedback value in the editor GIC.loader.
    I follow your explanations from your github to get button and axis values. It's ok but how to get value feedback and where do i have to search?
    In second, how send the value to the feedback?
    I try to undersrtand but it's not easy.

    ******Maybe do you have any documentation to use your interface? ********
    i would be very grateful.
    Thank you for your help.
     

    Attached Files:

    Last edited: May 25, 2023
  13. joelprogrammer

    joelprogrammer

    Joined:
    Oct 15, 2020
    Posts:
    5
    I managed to make my steering wheel vibrate with GIC.UpdateForceFeedback(0,value) and value=mathf Sin(fq*time.deltatime)*amplitude.
    THANKS ghiboz
     
  14. malak

    malak

    Joined:
    Jan 23, 2014
    Posts:
    65
    Hey my friend , i've just bought your asset and tried on new project but it doesn't detect my Moza R9 :(

    can you help me to detect it please ?
    i'm using unity 2021.3.15f