Help - Search - Members - Calendar
Full Version: foo_joystick_control plugin
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Alexi
Hello all!

I have just created a plugin to control song playback via joystick buttons

The plugin can be downloaded from http://foobar2000.mofo.ca/joystick_control
It's my first release, and is a little basic, as the joystick axis aren't supported. But if I get some feedback i'll be willing to expand it.

I have been using this plugin with a 4 button gamepad for about 3 weeks now and haven't run into any problems.

Should I add this to "Verified components for foobar2000" or anywhere else for that matter?

Cheers,
Alexi
wolfsong
QUOTE(Alexi @ Nov 11 2006, 19:05) *

Should I add this to "Verified components for foobar2000" or anywhere else for that matter?

I would suggest creating an account and adding it here.
Cosmo
Cool, I hope you continue development. I think your component is definitely an important addition, and should be added to all of the usual lists. Good luck, and thanks!

{edit} * added to Wiki - here
Alexi
QUOTE(wolfsong @ Nov 11 2006, 19:59) *

QUOTE(Alexi @ Nov 11 2006, 19:05) *

Should I add this to "Verified components for foobar2000" or anywhere else for that matter?

I would suggest creating an account and adding it here.


Thanks for the link wolfsong - I just added it.

and thanks Cosmo - I hope to continue development as time allows.
lo-fi
Thanks for this great plugin.
Works fine here

Some suggestions:
Enable all the joystyck buttons and add more commands.
An option for activate/deactivate the global joystick button actions like in keyboard shortcuts (i run games and foobar at the same time)
Alexi
Version 0.0.2 has been released. It's very minor but includes support for
  • 8 buttons (i haven't had the time to figure out how to dynamically detect out how many a given joystick supports)
  • limited volume control - it requires that you repeatedly push a button to turn down/up. Holding it down will not make things any faster.

I haven't been able to test this with an 8 button joystick, so if anyone has more than 4 buttons I would like to know if they work.

Cheers,
Alexi
lo-fi
Excellent! thanks.
8 buttons working (Playstation gamepad 12 buttons)
keep improving.
rendom
Yay!! Kick Ass Plugin! Thank you very much!
What about other buttons, and more "actions"?
Alexi
QUOTE(rendom @ Jan 4 2007, 00:43) *

What about other buttons, and more "actions"?


Are there any actions you would like to see for the next release? Please give me some examples of things you would like to see. Thanks
lo-fi
QUOTE(Alexi @ Jan 4 2007, 16:41) *

QUOTE(rendom @ Jan 4 2007, 00:43) *

What about other buttons, and more "actions"?


Are there any actions you would like to see for the next release? Please give me some examples of things you would like to see. Thanks

show now playing,activate/hide,stop after current and if possible foo_run services.
thanks
rendom
QUOTE(Alexi @ Jan 4 2007, 16:41) *

QUOTE(rendom @ Jan 4 2007, 00:43) *

What about other buttons, and more "actions"?


Are there any actions you would like to see for the next release? Please give me some examples of things you would like to see. Thanks


Next playlist, Prev playlist, Activate-Hide.
Alexi
I have just posted a new version which detects the amount of joystick buttons and supports up to 32 mappings.

Sorry but I haven't added any new actions yet sad.gif
buktore
Thx

I use this plugin a lot. it's great.

if it's has more action.than it will be super awsome.

thanks anyway.
Zelphar
Is there have any component support multimedia function button in keyboard or mouse to control foobar?
wombalton
It don't work! whats my fault?
In the console is displayed:
number of buttons : 9
number of axes : 3
but it don't work! any idea of the problem?
Pingue
Can anyone help?
I installed this plugin a while back, and for a week or two, it worked perfectly but it suddenly just stopped. Don't know what the problem is. I haven't bothered looking to fix this yet, but in the week or two it worked, it proved fairly useful. It's a 12-button firestorm which has had it's own problems, but which perfectly with any game I wish to play on. Am I missing something obvious?
buktore
try older version.

i have same ploblem too. change back to 0.2 fix the ploblem
wombalton
and how could I get this? on the webpage is only the new one..

//Edit:
OK, I had found it on the offical 3rd party components page

I'm curious about new functions... keep on working! wink.gif
elziko
It doesn't work for me - my joystick does nothing and no mention of joysticks is made in the console.

Are there any prerequisite DLLs required or something like that?
Alexi
I've posted a new version. I hope this will fix the problems with some joysticks.
This one has Axis mapping smile.gif

-Alexi


elziko: There aren't any DLL dependencies as far as I am aware. Give the new version a shot.
isamu
I'm using an Xbox 360 controller. Is there a way to assign the action of dragging the playback slider bar back and forth to the analog sticks?
buktore
Sorry. Just ignore this post.
hellgate
hi. great plugin.

i would like to see more options - fastforward, rewind,rpeat playlist track album, suffle playlist, album, and so on

geep up the good work
Alexi
QUOTE(isamu @ Aug 14 2007, 05:38) *

I'm using an Xbox 360 controller. Is there a way to assign the action of dragging the playback slider bar back and forth to the analog sticks?


Any idea what the analog sticks come up as under the joystick properties?
isamu
QUOTE(Alexi @ Aug 20 2007, 20:30) *

QUOTE(isamu @ Aug 14 2007, 05:38) *

I'm using an Xbox 360 controller. Is there a way to assign the action of dragging the playback slider bar back and forth to the analog sticks?


Any idea what the analog sticks come up as under the joystick properties?


I believe up and down is X axis and left and right is Y axis.
Alexi
QUOTE(isamu @ Aug 20 2007, 22:44) *

QUOTE(Alexi @ Aug 20 2007, 20:30) *

QUOTE(isamu @ Aug 14 2007, 05:38) *

I'm using an Xbox 360 controller. Is there a way to assign the action of dragging the playback slider bar back and forth to the analog sticks?


Any idea what the analog sticks come up as under the joystick properties?


I believe up and down is X axis and left and right is Y axis.


But doesn't the gamepad have two analog sticks?
isamu
QUOTE(Alexi @ Aug 21 2007, 06:45) *

QUOTE(isamu @ Aug 20 2007, 22:44) *

QUOTE(Alexi @ Aug 20 2007, 20:30) *

QUOTE(isamu @ Aug 14 2007, 05:38) *

I'm using an Xbox 360 controller. Is there a way to assign the action of dragging the playback slider bar back and forth to the analog sticks?


Any idea what the analog sticks come up as under the joystick properties?


I believe up and down is X axis and left and right is Y axis.


But doesn't the gamepad have two analog sticks?


Yeah, but I(as well as most people), only care about the left one smile.gif
Keikonium
This plugin is awesome!
I have a few requests:

- The ability to make the keys disabled when certain programs have focus. For example, I amusing my PS2 controller as my media "joystick" and using it to play some computer games. When I am in those games, if I press the keys I have assigned, it messes with my music. So if we could disable the keys when specified programs have focus, that'd be great.

- Have little text boxes beside each key entry where we can put custom titles so we know which "button 1, button 2" etc is where on the joystick. Or just make it so we can 'rename' "button 1" etc as X, or Triangle or something. It would make it easier to remember what button does what.

- Maybe have configs you could save and load button mappings from?

Also, if you're taking requests for commands, then:

- Stop
- Activate Now Playing
- Send To Playlist...
- foo_run commands
- Everything foobar can do to a file (I think you can get a full list the way panels_ui does it?)

Thats all for now, this plugin is really awesome smile.gif.
TheTravis
Working perfect with Microsoft Sidewinter. I hope that you have enough time and you're willing to develop this great plugin even better -thanks
Alexi
New Version (beta stage)

Hey hey everyone.

I am pleased to release my latest version, which still is in a state of flux... but is working (for me atleast).
  • New Configuration Interface
  • Multiple Joystick Support
  • Many new actions

If anyone wants to try it, I have posted it at http://foobar2000.mofo.ca/joystick_control/

Please let me know if it works or not.

I still want to...
  • have an option to change the sensitivity of the axis
  • option to change how fast actions repeat
  • add some visual clue to the interface to help figure out what button being pressed corresponds to which number
  • and most importantly, find free time for this.
buktore
Doesn't work for me. sad.gif I can set key at setting screen (very nice new action by the way.) but when i press button at my joystick. nothing happen.

Old version work fine. Hope you can fix it.
Alexi
I made a quick bug fix but didn't give it a new version number. However, I noticed one person has downloaded it so far (124.157.225.XXX) so please make sure you grab a new copy. It fixes a bug where some commands would crash foobar (like stop) - but it works now biggrin.gif
buktore
Nice man biggrin.gif seem to work now.

but i can't set "repeat" at all. (The repeat checkbox cannot be set) is this normal?

and my action don't repeat at all. at first i thought it's normal but i see you intend to have action to repeat. so i report it here.
Alexi
QUOTE(buktore @ Oct 12 2007, 01:36) *

Nice man biggrin.gif seem to work now.

but i can't set "repeat" at all. (The repeat checkbox cannot be set) is this normal?

and my action don't repeat at all. at first i thought it's normal but i see you intend to have action to repeat. so i report it here.


the checkbox should be greyed out until I get some more time to work on it - there's actually a hidden 3rd column which will contain this information.

But all actions should repeat if you hold down a button long enough. (for example I mapped `up' to increase font size, and can hold it down (well up) and the font keeps on growing really large until I let go.)
buktore
Nope. I assign "up" on my joystick to increase volume. I have hold it for minute now and no repeat.

Last version i used (0.1.1 tor edition i think) the joy axis does repeat command. but my button don't.

I use china fake PS1 usb joystick if you want to know. and it work properly.
DarkBlackCorner
Keikonium mentioned a useful way to identify buttons. Two other ways could be to automatically detect the controller format (PS2 / XBox / etc) or simply have LED type lights added to be beside each button in the list.

...just a thought wink.gif
vario
QUOTE(DarkBlackCorner @ Nov 29 2007, 12:50) *

Keikonium mentioned a useful way to identify buttons. Two other ways could be to automatically detect the controller format (PS2 / XBox / etc) or simply have LED type lights added to be beside each button in the list.

...just a thought wink.gif

might be a pretty cool app for a carputer to simplify the interface.
Alexi
QUOTE(DarkBlackCorner @ Nov 29 2007, 11:50) *

...simply have LED type lights added to be beside each button in the list.


That's exactly what I want to do. Times a bit short unfortunately as I recently started a new jorb.

Thanks for the input - it is great motivation.
Sai Kyou
Ok, great work on this plugin. It's pretty sweet that I can get rid of my crappy logitech multimedia keyboard and use my already present joystick(that I use as a sidebrake for the sim LFS) to control foobar.

But...
I am experiencing one bug, whenever I close foobar2000, it actually stays active in the task manager and eats 90~99% CPU..

Version 1.1 does not have this problem.

It only seems to happen with my Microsoft Sidewinder Forcefeedback 2 joystick. It doesn't happen when only my G25 steering wheel is plugged in.

Problem persists with both standard windows drivers and Sidewinder drivers.
MoonWolf
I want to assign [context/now playing] set rating to a joy stick.
Although it is doing by the keyboard shortcut using Quick Tagger, the collision of a hot key has been a problem. crying.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.