How do I misuse volume buttons?

Apprentice
Posts: 6
Joined: 2009.06
Post: #1
I've seen jailbreak apps like Snapture can use volume buttons for other stuff like camera shutter, etc.

Say I have a jailbroken iPhone, how do I do it?
(I don't really care if my app went to AppStore or not. Just want to know how they do it)
Quote this message in a reply
Moderator
Posts: 373
Joined: 2006.08
Post: #2
AFAIK, jailbreaking your iPhone is against Apple's policy.

Worlds at War (Current Project) - http://www.awkward-games.com/forum/
Quote this message in a reply
Apprentice
Posts: 6
Joined: 2009.06
Post: #3
i know, i just want to know how they do it.
I googled the Net and read iPhone Open Application Development book (a book on jailbreak app dev). But found nothing.
Quote this message in a reply
Apprentice
Posts: 6
Joined: 2009.06
Post: #4
Is there some way to do this without breaking Apple's policy?
Quote this message in a reply
⌘-R in Chief
Posts: 1,260
Joined: 2002.05
Post: #5
This forum does not talk about how to do anything regarding jailbreaking. Apple requires you use the buttons appropriately. If you want to bypass that, you'd need to use private APIs which means jailbreaking etc etc blah blah blah and we don't discuss it.
Quote this message in a reply
Member
Posts: 166
Joined: 2009.04
Post: #6
FreakSoftware Wrote:This forum does not talk about how to do anything regarding jailbreaking. Apple requires you use the buttons appropriately. If you want to bypass that, you'd need to use private APIs which means jailbreaking etc etc blah blah blah and we don't discuss it.

You mean it is illegal to even discuss it ?
You just gonna cover your ears or what ?
Quote this message in a reply
Moderator
Posts: 335
Joined: 2002.04
Post: #7
warmi Wrote:You mean it is illegal to even discuss it ?
You just gonna cover your ears or what ?

As many of the iDevGames members are signed up to the iPhone developer program, the site's policy is to not break any of the terms and conditions of that program's agreement so as to reduce any conflict of interest they would have.

There are plenty of hacker sites covering coding for jailbroken iPhones so iDevGames doesn't need to cover it.
Quote this message in a reply
Moderator
Posts: 3,577
Joined: 2003.06
Post: #8
And further, we get a little help from Apple engineers once in a while. They surely will not be hanging around long if we start allowing jail-broken discussion.
Quote this message in a reply
Member
Posts: 269
Joined: 2005.04
Post: #9
jaber Wrote:Is there some way to do this without breaking Apple's policy?

Nope. The public APIs only allow access to the touchscreen and accelerometer. You can't read the silent switch, volume buttons, home button, or sleep button without private APIs, which is against Apple's TOS.
Quote this message in a reply
Apprentice
Posts: 6
Joined: 2009.06
Post: #10
Zwilnik Wrote:As many of the iDevGames members are signed up to the iPhone developer program, the site's policy is to not break any of the terms and conditions of that program's agreement so as to reduce any conflict of interest they would have.

There are plenty of hacker sites covering coding for jailbroken iPhones so iDevGames doesn't need to cover it.

Thanks alot for the info. Could you point some of these hacker sites? Thanks again.

I hope Apple do something about this in GameKit in iPhone SDK 3.1. We know Apple somehow always turned deaf ears to us developers (their new dev forums just only started and still in beta)

I've never seen a good iPhone FPS because of this.
Quote this message in a reply
Member
Posts: 227
Joined: 2008.08
Post: #11
FPS developers for iPhone need to understand that there are many people that have a highly contrasting opinion on what the best control schemes are, some like the mouse, some like a joystick, some like console commands Rasp, some like touchscreen. You will never have a control scheme that everyone likes, the best that can be done is allpw variety. Look at the many control schemes and see which ones can be adapted to fit your game.

And foremost, DON'T RELY ON HACKS! Because someone out there will say "OMG WTF I catn cahnge me volmue this developer sucks this game breaks my itouch WTF Sad :| "

True grammar.
Quote this message in a reply
Apprentice
Posts: 6
Joined: 2009.06
Post: #12
Oddity007 Wrote:FPS developers for iPhone need to understand that there are many people that have a highly contrasting opinion on what the best control schemes are, some like the mouse, some like a joystick, some like console commands Rasp, some like touchscreen. You will never have a control scheme that everyone likes, the best that can be done is allpw variety. Look at the many control schemes and see which ones can be adapted to fit your game.

And foremost, DON'T RELY ON HACKS! Because someone out there will say "OMG WTF I catn cahnge me volmue this developer sucks this game breaks my itouch WTF Sad :| "

True grammar.

Okay. I know that. We just need to tell the player some warning about those buttons. Grin

About Handheld FPS:
Have you even played some fps on PSP, DS, or GBA?
You use the
- shoulder buttons to shoot
- analog buttons to move (or stylus in DS)
- directional buttons for jump, crouch, switch weapons, etc
- face buttons (circle-square-tri-cross) to walk and strafe

The point is you won't use face buttons to shoot. Developers have to misused those buttons for movement for best controls on a handheld. Or you have big time dodging and shooting enemies.

The same controls applies for gamepads in PS3, Xbox, 360, etc.

Just look at video reviews of iPhone ports of Duke, Prey, iFPS, etc. Everyone says movement and aiming simply sucks because of this.
Quote this message in a reply
Member
Posts: 227
Joined: 2008.08
Post: #13
jaber Wrote:Okay. I know that. We just need to tell the player some warning about those buttons. Grin

About Handheld FPS:
Have you even played some fps on PSP, DS, or GBA?
You use the
- shoulder buttons to shoot
- analog buttons to move (or stylus in DS)
- directional buttons for jump, crouch, switch weapons, etc
- face buttons (circle-square-tri-cross) to walk and strafe

The point is you won't use face buttons to shoot. Developers have to misused those buttons for movement for best controls on a handheld. Or you have big time dodging and shooting enemies.

The same controls applies for gamepads in PS3, Xbox, 360, etc.

Just look at video reviews of iPhone ports of Duke, Prey, iFPS, etc. Everyone says movement and aiming simply sucks because of this.

I do understand your point, and matter of fact, I have all those consoles (minus Xbox) and have played shooters for all of them. I even went through that exact same question to myself, so has John Carmack in his postmortem of Wolfenstien, and I bet thousands of other developers have as well. However, if there is one thing that I have learned about Apple, its that the final user, not the developer, should have a straight forward experience. If a developer could change this, then you have an inconsistancy that will confuse or frustrate the user. Most users are whiners, give them thousands of warnings and they will still complain, so cater to them.

I am not from Apple. I do wish I could access the volume buttons for an FPS. I have gone through this, as have many others. Yet, I believe that in the end, it is up to us to adapt to how things are, not as how we want them to be. Thats what makes an Indy Wii Game (Like World Of Goo) ten-fold better than a "Professional" Wii Game (Like Jenga).

Be creative.
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #14
Maybe you should be asking yourself whether a traditional first-person shooter really makes sense on the iPhone. To me, it seems like a poor fit for the types of input that are available. Now, if someone were to make a game controller peripheral with real buttons using the OS 3.0 dock connector API, things could be different...
Quote this message in a reply
Moderator
Posts: 335
Joined: 2002.04
Post: #15
The volume buttons would be a really bad idea for FPS controls even if you could use them. For starters they're in different positions on each device and there's no guarantee they'll stay put in future iPods/iPhones or even be there if Apple works out a nice way to do them without buttons.

The other thing is that they're not game style buttons. So if you tried using them as fire buttons, players would be wearing them out within a few days. Along with complaining that they're not getting a good response from them anyway.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Attempting to add landscape IB buttons to an openGL View Madrayken 1 3,799 Oct 17, 2010 07:03 AM
Last Post: iamflimflam1
  OpenAL wont change the volume (gain) of any sound alerus 2 3,962 Nov 15, 2009 02:19 PM
Last Post: alerus
  2D Control Buttons on Top of 3D OpenGl. Bersaelor 1 4,168 Sep 23, 2009 09:56 AM
Last Post: Skorche
  Translucent buttons 9livesoftware 0 2,333 Aug 8, 2009 03:27 PM
Last Post: 9livesoftware
  Shoulder buttons... jaber 1 2,367 Jun 13, 2009 08:52 PM
Last Post: AnotherJake