jkooker / idimp

Automatically exported from code.google.com/p/idimp
0 stars 0 forks source link

accelerometer data needs to be available from any view #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The accelerometer can only control amplitude when in the AudioButtonTest
view.  This is a problem, since in that view no performance with the touch
synthesis can happen anyway.  We need a way to make accelerometer data
available from any view.  Not sure how to do that (have the accelerometer
not be associated with a particular view) - is that even possible?

Original issue reported on code.google.com by meeshmu...@gmail.com on 10 Dec 2008 at 7:26

GoogleCodeExporter commented 9 years ago
Not a problem at all. We just need to decide which object will act as the 
controller
for our live main volume, and have that one receive the accelerometer 
notifications.

Options:
- The AppDelegate is persistent, and we were thinking of moving the AudioEngine 
there
anyway.
- We could use the MainViewController, if we only want accelerometer data to be
handled while that view is active.

Original comment by jkooker on 10 Dec 2008 at 9:51

GoogleCodeExporter commented 9 years ago
I think the AppDelegate is the way to go then.  So then the AppDelegate becomes 
a
UIAccelerometerDelegate and we centralize all accelerometer-handling code there.

Original comment by meeshmu...@gmail.com on 10 Dec 2008 at 9:54