I am making a game and when the volume (+) gets pressed I would like to increase a int by one. I can do this with a button, but how would I do this with a volume button?
Asked
Active
Viewed 1,533 times
0
-
2Check out http://stackoverflow.com/questions/10458438/ios-use-the-volume-buttons-as-input. That should be helpful. – Kyle May 27 '13 at 18:35
-
1Also http://stackoverflow.com/questions/8397170/how-to-implement-a-volume-key-shutter-for-iphone – Workshed May 27 '13 at 18:39
-
and this one: http://stackoverflow.com/questions/7528443/iphone-detect-volume-keys-press – Sterling Christensen May 27 '13 at 19:16
-
Thanks! They are helpful. – Bob May 27 '13 at 21:43