r/xbmc • u/CODEX_LVL5 • Jan 16 '13
I just made a program that automatically recognizes when a 360 controller connects and prompts you to enter Steam Big Picture or XBMC, is anyone interested in this? (Xpost /r/HTPC)
http://imgur.com/UTQgo3
u/smidley Jan 17 '13
Great app! Make sure you post this in the XBMC forum for this sort of thing: http://forum.xbmc.org/forumdisplay.php?fid=116
1
3
Jan 17 '13
Is there a way to set this up so that it doesn't bring up the prompt automatically but only when the Guide button is pressed?
I have my controller plugged in constantly and would love to be able to pick it up, press guide, and then have the prompt come up.
3
u/CODEX_LVL5 Jan 18 '13
Thats actually a good idea, i'll try to wedge that in.
So in addition to the auto detect, if you press the guide button that will also bring up the prompt. keep an eye out for an update in the next day or so
1
u/Ricketycrick Feb 17 '13
Just saw this. Did you ever make it to where you hit the guide button?
1
u/CODEX_LVL5 Feb 17 '13
Yeah, its actually the Start button. Guide button is pretty much inaccessible coding wise.
1
u/Ricketycrick Feb 17 '13
Thanks, so can I just click that link up there and get the newest version with the start button, or do I need to get an newer download?
1
u/CODEX_LVL5 Feb 17 '13
Yeah 1.1 should have it, so go ahead and just download it from the link above
1
u/Ricketycrick Feb 17 '13
Wait, is there no way to make it to where the command prompt only shows up when yo hold start? I was hoping there wouldn't be an auto detect.
1
u/CODEX_LVL5 Feb 18 '13
I can put that in as a feature for the next version. I didn't anticipate it to be a problem because you can only have your controller linked to one device at a time (your PC or your Xbox) so there's no cross contamination. So if you turn your PC xbox controller on, i would think that you're about to play a steam game or launch xbmc
1
u/Ricketycrick Feb 18 '13
Well a lot of the time i play games at my PC. So going into big picture just slows me down.
2
u/protopet Jan 17 '13
Is this hard coded for Xbox controllers or anything that runs xinput? Wondering about my Logitech f710 (the one steam has in ads for big picture) but I'm at work and I have non standard paths for xbmc and steam.
1
u/CODEX_LVL5 Jan 18 '13
Paths are hardcoded and it uses XNA which i assume is for xbox controllers. I made a special build for another person with non-standard paths, PM me if you need one as well. I'll be updating it to be able to have custom paths by tomorrow
1
u/Nick_Lastname Jan 16 '13
Crashes every time I try open it
1
u/CODEX_LVL5 Jan 17 '13
What operating system are you running?
1
u/Nick_Lastname Jan 17 '13
Windows 8, but Ive tried it in compatibility mode and still won't run
2
u/CODEX_LVL5 Jan 17 '13
oh, i have no idea if it would work in windows 8, only ones im sure of are xp/vista/7
1
u/Willworkforpants Jan 17 '13
Did you program using xinput1_3.dll? I believe Windows 8 doesn't ship with 1_3 it has 1_4. I've ran into that problem with AutoHotKey scripts and Windows 8 in the past.
1
u/CODEX_LVL5 Jan 17 '13
Not sure which DLL i used, i'll check when I get out of work
1
u/brangles Jan 18 '13
Crashes with a System.IO.FileNotFoundException for me. Windows 7.
1
u/CODEX_LVL5 Jan 18 '13
Do you have steam installed in the default path? Whats your operating system?
1
u/brangles Jan 19 '13
Windows 7. Yes, Steam is outside the default directory (my C drive would never have enough space for Steam games).
Perhaps an optional app.config is needed so people can specify paths? Unless there's some way to discover the Steam (or XBMC) executable without resorting to searching the entire filesystem...
edit: I'd love to take a look at the source code, if you don't mind.
1
u/kinggimped Jan 16 '13
This is a great idea. How about a 'neither' option, or the ability to add our own shortcuts (non-Steam games, emulators, etc.)?
2
u/CODEX_LVL5 Jan 17 '13
You can press B to close it
1
u/kinggimped Jan 17 '13 edited Jan 17 '13
That's great - looks like it'll work really well with my setup at home. Will try it out and give you any feedback I can! It's a great idea and not one I've seen implemented before - it's a shame that there isn't more stuff like this as the Xbox controllers work really well on the PC.
Quick question: can you specify where Steam/XBMC are installed? I have both installed on a different drive from my OS - from the screenshot it looks like the paths are hard coded.
1
u/CODEX_LVL5 Jan 17 '13
Yeah the paths are hardcoded for now because i didnt really intend on releasing this, if you need something specific i can generate a different copy for you. PM me
3
u/jaynoj Jan 17 '13
Hardcoding stuff like this is not good even if it's only for your own use. Use an app.config file or something and bang those path variables in there, or give them a menu where they can browse to the exe locations.
1
u/MeanwhileInSAfrica Jan 17 '13
Nice! This is an awesome idea, any chance you're willing to share the .sln ?
1
1
u/TheEchoCode Jan 17 '13
Does'nt work on my PC, i'm running windows 7 64-bit system. i'm trying to run it in compatibility-mode with no success.
1
1
Jan 17 '13
I'm planning on trying this out when I get home tonight. One quick question. Is there a way once I'm done in XBMC or Steam respectively to switch back to the other using just the controller (other than disconnect and reconnect again)
Thanks!
1
u/CODEX_LVL5 Jan 18 '13
I'm going to try to add an additional feature in the next day or so that will let you push the center button to bring up the dialog again (it will only do it if XBMC isn't open already)
1
u/crisi Mar 20 '13
this sounds really nice. what happens once you launch either xbmc or steam and exit it? does the selection box reappear?
1
u/CODEX_LVL5 Mar 21 '13
you can make it re-appear by either powering the controller off and on again or holding the start button
3
u/hatperigee Jan 16 '13
I bet this would be fairly simple to do in Linux, perhaps just by monitoring udev events or ??
Unfortunately I don't have an xbox controller :(
3
u/urzaz Jan 17 '13
Get one. They're really excellent, especially now that you have some games to play with them. Plenty of games work with them really well.
You do need the wireless-USB adaptor, though.
4
u/hatperigee Jan 17 '13
I.. just can't ever seem to be able to graduate from the mouse/keyboard.. even after 2 decades of gaming.. It just feels more natural to me, especially when playing FPS.
2
u/urzaz Jan 17 '13
Well yes, FPS, of course. But seriously, Far Cry 3's soft aim is so soft it hardly matters. I like being able to kick back and trek through that jungle.
A lot of games I play, though, (Assassin's Creed probably best example) really work well when you have lots of triggers and buttons you press all at once, and at least with the 360 the trigger gives you a degree of control for things like accelerating in GTA IV that you don't get with a keyboard and mouse.
1
u/hatperigee Jan 17 '13
Hmm, I'm a bit more convinced. I've been all over M&B these days, but 360 controller support seems on the fritz. The thought of playing this epic game on my couch is very tempting, however my xbmc box is a measly atom-based zotac system.. so an upgrade there would be necessary in addition to some solid controller support for this game (that can seemingly match keyboard/mouse)
4
u/CODEX_LVL5 Jan 17 '13
I just bought a 35 foot HDMI cable and a bunch of wireless gear and poof, i have a super computer HTPC in my living room.
1
u/hatperigee Jan 17 '13
Well I hope that's not what you're running Windows on ;)
(I kid..)
In any case, yall have given me a few things to think about.. Thanks!
1
u/urzaz Jan 17 '13
That's a caveat, support is often much better for AAA games ported from consoles. Indie games are more hit and miss. M&B I have no idea how well it would control, but I can barely play that game anyway.
2
1
1
u/shawkolate Jan 17 '13
Dude, hell yes. This is brilliant, thank you so much for this ridiculously helpful tool.
1
u/Aqua_lung Jan 17 '13
I have my controller plugged in all the time, would be great if this worked with an MCE remote too, hit the windows home logo and launches the dialog.
1
1
u/mrfrightful Jan 18 '13
Add a customisation menu so you can add launchable programs, bind it to a hotkey or media button or whatever or eve n deactivate the automatic behaviour etc etc
Then whatever weird and wonderful setup people have they can tweak your little launcher to suit themselves.
1
u/z3rocool Jan 18 '13
I wish valve would of just forked xbmc for big picture mode and actually gave back to the community.
They constantly reinvent the wheel. Steam for linux is a perfect example - why wouldn't you let my window manager deal with the decorations instead of doing your own crap that doesn't work that well.
1
u/TheEchoCode Jan 19 '13
After the new patch when you can change the paths for steam and XBMC and it works great! Good work Codex!
1
Feb 22 '13
Not working for me in Windows 8 :(. Any chance of releasing a updated version with a fix? This seems like a fantastic idea.
-1
0
Jan 18 '13
[deleted]
2
u/CODEX_LVL5 Jan 18 '13
Could you elaborate on that? Currently in my setup I just have my TV constantly mirrored from my main monitor, so i never need to switch displays
0
Mar 28 '13
[deleted]
1
u/CODEX_LVL5 Mar 28 '13
Hey, I made the program. What kind of troubles are you running into?
0
Mar 28 '13
[deleted]
1
u/CODEX_LVL5 Mar 28 '13
ok first a few things:
What is your operating system?
Do you have the microsoft xbox controller adapter for windows? (so your computer can use the controller) Also confirm that it actually works by using it in some steam game
12
u/CODEX_LVL5 Jan 16 '13 edited Jan 18 '13
Download link is here. The program auto detects your Xbox 360 controller when you turn it on and lets you choose between launching Steam Big Picture or XBMC. This way you never need to touch a keyboard.
Download Link
PM me with any questions, comments, feature requests, or if you want the source. Thanks!
EDIT: New version is out. V1.1