The Arduino Leonardo source code to make an "Easy Button" into a HID input. See source file for details. Blog post here
EasyButtonLaunch is free and unemcumbered software released into the public domain. For more information, see the included UNLICENSE file.