PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How to turn off key clicks on Smartphone

OK, I've searched the forums, the WinCE docs and all the likely areas, but I can't find out how to turn off the key clicks on my Smartphone. Is this something the user is supposed to do on the phone or (hopefully) something I can do from within the program code?
lo, presume this is what you mean:

Turn Off Hardware Button Click Sound
You might have noticed that many games on Smartphones suffer from a "jagged" frame rate, but if you turn off the hardware button click sound, the games appear to run much smoother.

For some reason, the device seems to freeze for a fraction of a second as the operating system plays the button click sound every time you push a button.

Fortunately, almost every aspect of the user interface can be configured with XML. By setting up a small configuration script, you can tell the Configuration Manager to change almost anything you want.

<wap-provisioningdoc>
<characteristic type="Sounds">
<characteristic type="ControlPanel\Sounds\KeyPress">
<parm name="Mode" value="1"/> <!-- 0=none, 1=tone, 2=click -->
</characteristic>
</characteristic>
</wap-provisioningdoc>

Use the DMProcessConfigXML() function to push the above XML configuration data through the Configuration Manager.

Remember that you might lose focus during execution—so be sure to restore the original configuration before giving up control to another application. And since the user might have changed the settings while our application was inactive, read back to settings as we get focus back.


From: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtphn/html/smartphonegames.asp">"Developing Smartphone Games"</a>

Funny the things you stumble across while looking for/at something totally unrelated :)
Yep, that is what I need. I did finally find out how to manually turn them off on my phone, but that is really only half the problem.
Thanks for posting this, I had just about given up on finding any information.

Cheers,

rcp
Did you manage to get this to work? I tried, but couldn't make it work.