LibGDX - Controller extension issue

EvgizEvgiz Posts: 184Member
edited June 2013 in General Development
Hey.

Im facing a problem when trying to implement controller support in LibGDX.The controllers worked perfectly before I updated to the newest LibGDX version.

Yesterday I updated gdx and now I get this error:
"No controller manager available for: Desktop"
Downgrading gdx again didnt fix the issue.

It seems like the Gdx.app.getType() fails somehow in the gdx Controllers class...
Judging by the code, unless I have completely overlooked something, thats the only way the error can appear.

Does anyone know what I might be doing wrong?
It the extension just broken in the latest build?

Post edited by Evgiz on

I made the OUYA exclusive games Cube and Creature and Hellworm!
evgiz.net




Comments

  • EvgizEvgiz Posts: 184Member
    edited June 2013
    ....for some reason the post appeared in some code tag or something? Whoops...
    EDIT: Fixed it :D
    Post edited by Evgiz on

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




  • skoggyskoggy Posts: 12Member
    What version of libgdx? It's working fine for me.
  • EvgizEvgiz Posts: 184Member
    I have tried both nightly build and 0.9.8! 
    The strange thing is that the ONLY way "No controller manager for: Desktop" can appear is if the Gdx.app.getType() fails in the Controllers class.

    I have tried creating completely new projects, and both downgrading and updating GDX.

    What version are you running on? Do you use the extension from the same version?

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




  • skoggyskoggy Posts: 12Member
    Did you add the libraries for the desktop project? Which jars did you add to which project? Sounds like some jar is missing.

    I don't remember what version I'm using, I can check tonight. However, it has worked for me with different versions.
  • EvgizEvgiz Posts: 184Member
    I added the jars I thought were correct at first, and when that didnt work I tested every reasonable combination I could come up with.

    Should the jars be placed in "Referenced Libraries" like other libraries? I have never had issues like this one before. 

    I will try more later today, and report in my result  :D

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




  • EvgizEvgiz Posts: 184Member
    edited June 2013
    I managed to solve the issue! :D

    I believe it was caused by a broken jar (one of the controller extension jars).
    Thanks for your help! :)

    Post edited by Evgiz on

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




Sign In or Register to comment.