Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: Maouu on October 29, 2016, 10:20:10 AM

Title: Control volume by the buttons ?! RPI
Post by: Maouu on October 29, 2016, 10:20:10 AM
Hello, it is possible to control the volume by pressing buttons ?! for example 1 button for Volume Up (+) and 1 button for Volume Down (-) ?!!

Thanks you
Title: Re: Control volume by the buttons ?!
Post by: keilmillerjr on October 29, 2016, 12:13:12 PM
Set your encoder to windows volume keys.
Title: Re: Control volume by the buttons ?!
Post by: Maouu on October 29, 2016, 12:17:10 PM
Thanks you but I'm on raspberry pi!
Title: Re: Control volume by the buttons ?! RPI
Post by: Maouu on October 30, 2016, 04:36:13 AM
Anyone can help me ?!! thanks you
Title: Re: Control volume by the buttons ?! RPI
Post by: YouBaxter on October 31, 2016, 08:00:17 PM
Interested in this as well. 

Assuming you are talking the same thing...  But, I want to hold down a hot key, and push UP for volume increase and DOWN for volume decrease.
Title: Re: Control volume by the buttons ?! RPI
Post by: keilmillerjr on November 01, 2016, 05:28:39 AM
Do what i said and see if it wrks. Else, try xbindkeys.
Title: Re: Control volume by the buttons ?! RPI
Post by: Maouu on November 01, 2016, 10:32:43 AM
How do you do for Raspberry pi.?! Xbindkeys is for Windows right?
Thanks
Title: Re: Control volume by the buttons ?! RPI
Post by: keilmillerjr on November 01, 2016, 03:15:19 PM
How do you do for Raspberry pi.?! Xbindkeys is for Windows right?
Thanks

i already told you how to for rpi. Are you using an encoder? The X in xbindkeys stands for x window system.
Title: Re: Control volume by the buttons ?! RPI
Post by: Maouu on November 02, 2016, 03:23:11 AM
I don't know if I use an encoder because I use a floob image which I downloaded on the attract mode website!
I boot directly under attract mode when I start my raspberry pi

Thanks you very much for your help!
Title: Re: Control volume by the buttons ?! RPI
Post by: Maouu on November 02, 2016, 03:32:27 AM
Ok sorry!! I use an USB encoder but I don't know how to do for configure the buttons on the sound on this encoder.. Because I don't have a software to configure it. He just emulate keyboard... Maybe in the attract mode configuration menu.?!! But I don't find it :(
Title: Re: Control volume by the buttons ?! RPI
Post by: keilmillerjr on November 02, 2016, 05:27:37 AM
Ok sorry!! I use an USB encoder but I don't know how to do for configure the buttons on the sound on this encoder.. Because I don't have a software to configure it. He just emulate keyboard... Maybe in the attract mode configuration menu.?!! But I don't find it :(

Which encoder and i can help you out.
Title: Re: Control volume by the buttons ?! RPI
Post by: Maouu on November 02, 2016, 06:31:01 AM
There is zero delay USB encoder!

Zero Delay Arcade USB Encoder to Joystick for MAME Multicade Keyboard Encoder PC Fighting Games, USB to Jamma AC425
 http://s.aliexpress.com/FvEJnyYz
(from AliExpress Android)
Title: Re: Control volume by the buttons ?! RPI
Post by: YouBaxter on November 05, 2016, 11:11:44 PM
Okay...here is what I did...assuming you are wanting to do the same as me. . .


My Goal:     Control volume by controlboard/controller/joystick.

Change:      Modify the RetroPie JoyPad file

/opt/retropie/configs/all/retroarch-joypads
......Modify your controller file (backup first) (mine is snes30snes30joy.cfg for example)

Added the following lines to tie up and down DPAD Actions to volume increase/decrease.
input_volume_up_axis = -1
input_volume_down_axis = +1

This will map the action to your HOTKEY


I BELIEVE, you can also edit the "retroarch.cfg" file as well in the /opt/retropie/config/all directory, but I haven't modified that since the pi1 days.


-bax