# How to add volume control in stand alone emulators

**URL:** <https://forum.clockworkpi.com/t/how-to-add-volume-control-in-stand-alone-emulators/4144>\
**Category:** Tutorials\
**Created:** [July 26, 2019, 3:27am UTC](https://forum.clockworkpi.com/t/how-to-add-volume-control-in-stand-alone-emulators/4144 "2019-07-26T03:27:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [July 26, 2019, 7:00am UTC](https://forum.clockworkpi.com/t/how-to-add-volume-control-in-stand-alone-emulators/4144/3 "2019-07-26T07:00:55Z")

</div>

Someone wrote a script to do this for Pico-8. It sets up hooks for the volume buttons and then launches Pico-8, all within the same script. It’s essentially a wrapper for Pico-8.

The same thing could be adapted to launch anything else, and assuming you didn’t need those buttons for the thing you were launching (like Retroarch), it should work.

Might be nice if someone tweaked this script a bit to be more generic and maybe take a single parameter for the target application to launch. Then it could be used in scripts and could take over the volume keys for anything.

It would be even nicer if this was done properly, as a system service (and maybe more efficiently). Just a guess, but I imagine most of us would want the volume buttons to work most of the time. If there was a way to override them (disable the service via a command when launching the target application), that would probably make more sense. Then if you wanted to use the volume buttons for something else, you could, but by default they would actually control the volume.

Anyhow, this might be useful if someone wants to tinker:

> [@Enabling Volume Buttons in PICO-8](https://forum.clockworkpi.com/t/enabling-volume-buttons-in-pico-8/3734):
>
> This has been posted before but only as comments so I thought I open up a thread for it so it’s easier to find. Here is how to make the volume buttons work when running PICO-8 The script was initially written by [follower46](https://forum.clockworkpi.com/u/follower46) It is available here: However, the original script is a bit old and some paths need to be changed in order for it to work with the current default PICO-8 integration. If you have any issues, post them here.

---

_[View the full topic](https://forum.clockworkpi.com/t/how-to-add-volume-control-in-stand-alone-emulators/4144)._
