[Android] IRdA - InputRedirection client for Android

Discussion in '3DS - Homebrew Development and Emulators' started by MarcusD, Feb 27, 2018.

  1. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    :c

    Can I please have your config file? It should be files/shared_properties.xml or something like that.
     
  2. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    Whats the default directory for your configs? I cant seem to find it anywahere in the root directory.
    Sorry bout the trouble mate. Cant seem to find the cause of the problem too. I tried another controller but that didnt fixed the problem. Someone with another phone might be able to confirm if iam isolated case or not.
     
  3. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    It's in /data/data/MarcusD.IRDa/files/

    Also, can you please record me on a video slowly how you're setting up your axes? I'll try to do what you're doing and check with my setup to see what could've gone wrong.

    Also, in a few days I'll make a debug Activity where you'll be able to test the axes, and I'll ask you to test it.
     
  4. YTElias

    YTElias Ashley

    Member
    3
    Aug 23, 2017
    Germany
    Germany
    So
    we can play our 3ds with our android phone?
     
  5. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    Well... you can hook up an USB or Bluetooth controller to your phone and use that to play with your 3DS.

    Obviously the limitations of InputRedirection also apply here, and you need to make sure the 3DS passes the conntest so it can connect to the same network as the phone is on.

    But other than that yes.
     
  6. YTElias

    YTElias Ashley

    Member
    3
    Aug 23, 2017
    Germany
    Germany
    well i try it out
     
  7. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    Right here my mate.
    Warning: Spoilers inside!

    I also included the file itself in the attachments compressed in archive.

    About the remapping, yes i could provide you a video later tonight. But im quite sure i did the right thing because i made the circlePad analogs work properly. :D.


    ------------------------

    You could connect a Controller to your 3ds.

    But 3ds doesnt have bluetooth functionality or capabilities/drivers to read a controller hooked up so they made inputRedirection.

    You connect your controller to your PC, the PC interprets the "inputs" and "redirects" it to the 3ds.

    Instead of a PC, OP created an android app so we could use our phones instead.
     

    Attached Files:

    • cal.rar
      File size:
      430 bytes
      Views:
      18
    Last edited by chirogan, Mar 3, 2018
    MarcusD likes this.
  8. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    Yup, you did. I checked the axis cal, and it's a perfect mirror and all axes are matching logically. Good to hear you magically got it working :rofl2: Things can magically just start working (again), even if it defies all laws of physics and existance.
     
  9. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    Oh no mate.. i meant the right analog sticks are working correct. But i still got the c-stick problems.. xD
     
  10. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    :c

    But at least your CAL problems got solved, so that's good. Hmm... can you attach a debugger and break at HandleAxis ?
     
  11. Craftyawesome

    Craftyawesome Advanced Member

    Newcomer
    2
    Feb 3, 2018
    United States
    I think the c stick issues are caused by an overflow or something, as I can't get issues with partial presses.
     
    chirogan and MarcusD like this.
  12. belgari

    belgari Belgari

    Newcomer
    2
    Oct 29, 2012
    Brazil
    I have a Ipega contoler that dont recognizes the D-Pad on config, it works normaly in any other app or game.
     
  13. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    Some DPADs are regognized as buttons, some are recognized as axes. Try "Axis CAL".
     
  14. belgari

    belgari Belgari

    Newcomer
    2
    Oct 29, 2012
    Brazil
    First i tried and d'nt worked, but them i remember turn on the controler than it worked, thx!! a question, you plan add more stuff to this app? cuz it would be awesome , a Android 3DS helper Central...
     
  15. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    This is quite bothering. I tried to debug the app this morning but i get app crashes before it even starts loading. Ill try another way.

    Edit: ill try to debug the app via android studio when i get home. I'll let you know the results later.
     
    Last edited by chirogan, Mar 4, 2018
  16. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    I don't plan on adding new features, since this is an InputRedirection client, not a 3DS multitool. The code is already impossible to manage, so I'd rather start a new application if the demand is high enough.

    I don't know why it'd crash right at the start :c

    setContentView is supposed to inflate the view at the moment you call it, not after onCreate, so it makes no sense why it'd crash right at the start...
     
  17. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    Hey buddy, how are you? Had some trouble over our internet connection this past week(yeah. Our isp sucks). I totally forgot this.

    I tried debugging but no luck. I cant make the debugger to work. Either i cant find a way to debug this or i suck at this. Do you emulate the app or you tried directly on a compatible phone? Im just curious coz you fixed the app in your phone but the problem is persistent with the package..
     
  18. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    I have 4 Android devices (only two of which recognize the controller), and those two both work the same way, and work perfectly fine.

    Sadly I only have one compatible controller, so can't test others :(

    Also, I can't dev for a while due to my left hand, so the most thing I can do is rebuild the apk where it's set to be debuggable.
     
  19. chirogan

    chirogan The Engineer

    Member
    2
    Feb 28, 2018
    Philippines
    Its not some serious injury or something isnt it? Goodluck on your recovery.

    Im just too outdated to explore new stuff and doing so requires a lot of work for me. Now with my current work, it makes it even impossible.

    Anyway, the app is functional. The games on the 3ds rarely use the c stick but it just boggles my mind thinking i can't use it to the fullest potential. Also, the games i want to use these on requires c stick and platformer games. Monster hunter series, xenoblade, SMASH bros. Id be glad to attach a 20bucks controller, game as hard as possible and throw the controller if it starts malfunctioning. (Nah, i care for my 3ds, i just want it when my brother and friends borrow and smash the 3ds instead of the game)

    Anyway, is it possible to get the apk file from your phone directly? Like send the app through shareit to get the apk to another phone, or if you have root access, find the root apk. Etc. I want to try getting something you have recently tried on the actual phone rather than a freshly built one. If it makes more sense? And of course of you can manage to do it for me..
     
  20. MarcusD
    OP

    MarcusD WOODMILLS!

    Member
    9
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    The apk you're using is the exact same which gets installed via `adb install` by the debugger, so that's not the problem here. I just can't understsnd how and why--
    [at this moment I realized that I made changes to the program, I fixed the same issue with the CPad, but I left the CStick code as-is, and since I'm using my 2DS to test (there's no old3DS irrst support yet) I can't detect CStick code mistakes]

    It'll take me a while to fix the CStick bug with one hand, but I'll try and post a (hopefully) fixed build here.
     
    chirogan likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice