# Create an API for accelerometer data

**URL:** <https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327>\
**Category:** SDL Development\
**Created:** [January 22, 2013, 2:51am UTC](https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327 "2013-01-22T02:51:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RodrigoCard](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/r/3bc359/32.png) [@RodrigoCard](https://discourse.libsdl.org/u/RodrigoCard)\
**Post date:** [January 22, 2013, 2:51am UTC](https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327/1 "2013-01-22T02:51:15Z")

</div>

Hello There.

I see that this is on the Roadmap wishlist.  
Any plans for that in the short term?

I am asking because now that Android have Joystick Support would be good to  
remove the accelerometer code from where it does not belong…  
What you all think?

---

<div class="post-metadata">

**Author:** ![Alex\_Barry](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/alex_barry/32/515_2.png) [@Alex\_Barry](https://discourse.libsdl.org/u/Alex_Barry)\
**Post date:** [January 22, 2013, 2:58am UTC](https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327/2 "2013-01-22T02:58:48Z")

</div>

Sounds like this would be a great idea for something like SDL\_motion - this  
should really exist.On Mon, Jan 21, 2013 at 9:51 PM, Rodrigo wrote:

> Hello There.
> 
> I see that this is on the Roadmap wishlist.  
> Any plans for that in the short term?
> 
> I am asking because now that Android have Joystick Support would be good  
> to remove the accelerometer code from where it does not belong…  
> What you all think?
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Sik\_the\_hedgehog](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@Sik\_the\_hedgehog](https://discourse.libsdl.org/u/Sik_the_hedgehog)\
**Post date:** [January 22, 2013, 4:12am UTC](https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327/3 "2013-01-22T04:12:46Z")

</div>

I never understood why accelerometers were ever considered a joystick  
in the first place, even back in the day when they weren’t a big  
thing.

2013/1/21, Alex Barry \<alex.barry at [gmail.com](http://gmail.com)\>:\> Sounds like this would be a great idea for something like SDL\_motion - this

> should really exist.
> 
> On Mon, Jan 21, 2013 at 9:51 PM, Rodrigo wrote:
> 
> > Hello There.
> > 
> > I see that this is on the Roadmap wishlist.  
> > Any plans for that in the short term?
> > 
> > I am asking because now that Android have Joystick Support would be good  
> > to remove the accelerometer code from where it does not belong…  
> > What you all think?
> > 
> > * * *
> > 
> > SDL mailing list  
> > SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> > [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Alex\_Barry](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/alex_barry/32/515_2.png) [@Alex\_Barry](https://discourse.libsdl.org/u/Alex_Barry)\
**Post date:** [January 22, 2013, 4:26am UTC](https://discourse.libsdl.org/t/create-an-api-for-accelerometer-data/19327/4 "2013-01-22T04:26:19Z")

</div>

They’re considered a joystick because they have the same degrees of  
freedom, so motion in an accelerometer can be translated into a joystick  
direction.On Mon, Jan 21, 2013 at 11:12 PM, Sik the hedgehog \< sik.the.hedgehog at [gmail.com](http://gmail.com)\> wrote:

> I never understood why accelerometers were ever considered a joystick  
> in the first place, even back in the day when they weren’t a big  
> thing.
> 
> 2013/1/21, Alex Barry \<@Alex\_Barry\>:
> 
> > Sounds like this would be a great idea for something like SDL\_motion -  
> > this  
> > should really exist.
> > 
> > On Mon, Jan 21, 2013 at 9:51 PM, Rodrigo wrote:
> > 
> > > Hello There.
> > > 
> > > I see that this is on the Roadmap wishlist.  
> > > Any plans for that in the short term?
> > > 
> > > I am asking because now that Android have Joystick Support would be good  
> > > to remove the accelerometer code from where it does not belong…  
> > > What you all think?
> > > 
> > > * * *
> > > 
> > > SDL mailing list  
> > > SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> > > [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
