Homebrew 3DS Controller

  • Thread starter CTurt
  • Start date
  • Views 412,005
  • Replies 1,197
  • Likes 104

caffVic

Active Member
Newcomer
Joined
May 16, 2016
Messages
29
Trophies
0
Age
32
XP
84
Country
CTurt has not been very active in GitHub for the last week or so, so I'll say it here for anyone looking for it.

I've fixed some problems with the original linux version and now it is pretty usable. You can download it here. It is just a python script but it won't upload if not compressed.

I've also made a pull request so hopefully you will be able to get it from CTurt soon.

REMEMBER: This is ONLY for Linux.

EDIT: Check out the official Git. The PRs were merged long ago and you can find more goodies there.
 

Attachments

  • 3DSController.zip
    2.6 KB · Views: 228
Last edited by caffVic,

caffVic

Active Member
Newcomer
Joined
May 16, 2016
Messages
29
Trophies
0
Age
32
XP
84
Country
Is there a way to do the reverse? I want to wirelessly use a controller on the 3DS.
I don't think there is. Because of how the 3ds works you can only have one app open at a time so whatever thing you programmed would have to be implemented in every game or in the OS itself. Some people on youtube have wired gamecube controllers to the 3ds tho, and that means you could potentially put a bluetooth reciever in there as a reciever.

So yes, you "can" but either way is too hard to be worth it.
 

VeniaSilente

Well-Known Member
Newcomer
Joined
Sep 6, 2014
Messages
97
Trophies
0
XP
536
Country
Cote d'Ivoire
I've been out of the scene for long enough but when I got back the very first thing I tried was to get the latest version of this software and try it on my Linux laptop. Seems to work well barring minor issues.

I'm missing on the tap option for desktop control, but can work my way around it via the L and R buttons remapping.
However since I would use this not only from home wifi but others, I would really like to see advancement in the "Ability to enter IP address via 3DS" Github issue. And I would like to know if there is a means or plans to implement of controlling the touch sensitivity / acceleration from inside the app.

Still, thanks much for this program! It make so many things (like trying to learn how to draw) more enjoyable.
 

caffVic

Active Member
Newcomer
Joined
May 16, 2016
Messages
29
Trophies
0
Age
32
XP
84
Country
I've been out of the scene for long enough but when I got back the very first thing I tried was to get the latest version of this software and try it on my Linux laptop. Seems to work well barring minor issues.

I'm missing on the tap option for desktop control, but can work my way around it via the L and R buttons remapping.
However since I would use this not only from home wifi but others, I would really like to see advancement in the "Ability to enter IP address via 3DS" Github issue. And I would like to know if there is a means or plans to implement of controlling the touch sensitivity / acceleration from inside the app.

Still, thanks much for this program! It make so many things (like trying to learn how to draw) more enjoyable.

Hi! I'm not very sure about what tap option are you talking about, I'll need a more detailed explanation. Bear in mind I don't use Windows, so I can be a bit clueless about what the Windows version does.

On the "Ability to enter IP address via 3DS" matter... I'm not CTurt nor do I speak for him, but he doesn't seem to have any "plans" (really, I'm just saying by the looks of it)... He does accept PRs and comes across as rather polite, iYKwIM.

Thirdly, because of how the app is made, it makes more sense to modify sensitivity and acceleration on the computer side of things and at least for the Linux version everithing is hard-coded. Good news is that it is somewhat easy to modify them, with propper indications, so on the file 3DSController.py which is the one of the two that supports keyboard and mouse:

For click sensitivity, it is on line 245. The 0.1 that you see at the end of the line is how short the tap has to be to register as mouse click. If you make that bigger, it should get easier to click.

To get acceleration it is a bit harder. At lines 239 and 240 you have the x and y positions mutiplied by mouse_speed, which is a flat number. You could increment that number in any whay you desire if you set it back to its original value when there is no tap event. Something along...


Code:
        if data["keys"] & keys.Tap:
            if touch is MouseAbs:
                x = (data["touchX"]-abs_deadzone) / (320.0-abs_deadzone*2)
                y = (data["touchY"]-abs_deadzone) / (240.0-abs_deadzone*2)
                move_mouse_abs_frac(x, y)
            if touch is MouseRel and not newkeys & keys.Tap:
                mouse_speed = mouse_speed + 1
                x = (data["touchX"]-touch_last_x) * mouse_speed
                y = (data["touchY"]-touch_last_y) * mouse_speed
                move_mouse(x, y)
            touch_last_x = data["touchX"]
            touch_last_y = data["touchY"]
        else:
            mouse_speed = 4

Might have fuktup somewhere, I didn't try that code out.
 

missinsummer

Well-Known Member
Newcomer
Joined
Nov 7, 2015
Messages
76
Trophies
0
Age
32
XP
91
Country
i wish it is the other way around.

i want to use my own controller to play 3DS game lol like xbox controller to play monster hunter xD
 

lolorlofl

Well-Known Member
Member
Joined
May 10, 2008
Messages
192
Trophies
1
Website
Visit site
XP
757
Country
Canada
ZL and ZR don't work for me on the .cia version, and every time I exit with Start + Select on the .3dsx version it crashes to a redscreen. Does the creator of this homebrew still update it? The last release for this was on September 6, it would be great if this was still being worked on!
 

Giodude

GBAtemp's official rock
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
ok, im extremely confused. Whenever i boot the windows client, nearly every game on my pc freeze upon launching, and all previously loaded games crash. These game are but not limited to:

1: rivals of aether
2:zsnes
3:100% orange juice

I cant for the life of me find out why this is, and this happens regardless if the 3ds is connected or not. Yes i rebooted.
 

LoDeus

Well-Known Member
Newcomer
Joined
Feb 2, 2016
Messages
95
Trophies
0
Age
25
XP
204
Country
Belgium
Well... I installed vJoy, didn't touch at the .ini in the PC folder, connected my n3DS to my computer (windows 10) but vJoy don't seem to detect anything :/ is that normal? (I really don't understand anything, I've been trying for 3hours and can't make it work)

EDIT:

Just saw that, I tried but doesn't work neither :/
 
Last edited by LoDeus,

caffVic

Active Member
Newcomer
Joined
May 16, 2016
Messages
29
Trophies
0
Age
32
XP
84
Country
Well... I installed vJoy, didn't touch at the .ini in the PC folder, connected my n3DS to my computer (windows 10) but vJoy don't seem to detect anything :/ is that normal? (I really don't understand anything, I've been trying for 3hours and can't make it work)

EDIT:


Just saw that, I tried but doesn't work neither :/
My guess is that you are not connecting them properly. Both programs use your wifi network, but the 3ds has to know which ip your PC has assigned. It would really help if you enumerate step by step what you are doing.
 

LoDeus

Well-Known Member
Newcomer
Joined
Feb 2, 2016
Messages
95
Trophies
0
Age
25
XP
204
Country
Belgium
My guess is that you are not connecting them properly. Both programs use your wifi network, but the 3ds has to know which ip your PC has assigned. It would really help if you enumerate step by step what you are doing.

So, I download this one and instal the cia on my 3DS. I put the .ini file from the 3DS folder with my PC's IP on the root of my sd card (I didn't change the one from the PC folder).
I open the .exe and launch the homebrew on my 3DS and it is connected. Then I open an emulator to change the controls and it doesn't work :/ but in a text editor or the notepad, the keys are working, even if not like it should (down give right, left is up ~~~~)
 

caffVic

Active Member
Newcomer
Joined
May 16, 2016
Messages
29
Trophies
0
Age
32
XP
84
Country
If you managed to write text, that is as far as I can help you, I only do some Linux stuff. If I were you, I'd try other releases, like an older one or one from CTurt.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: i think im a bad person