This is an experimental application that allows waking of a device by the capacitive or hardware buttons.
Releases and info @ http://windowsphonehacker.com/articles/experimental_samsung_touchwake_use_capacitive_buttons_to_wake_your_device-07-13-12
Licensed under GPLv3. In (unofficial) laymen's terms, you can use this source for any purpose, so long as your software remains under the same license. You can use the use privately for any purpose, but if publicly released in binary form, your modification of the source must be made publicly available under GPL: http://www.gnu.org/licenses/gpl-faq.html#GPLRequireSourcePostedPublic
This project contains fiinix's DllImport library, which is licensed under proprietary terms listed here: http://forum.xda-developers.com/showthread.php?t=1006331