The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Create an API for accelerometer data
RodrigoRodrigoR


Joined: 20 Jan 2013
Posts: 7
Location: Brazil
Helo 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?
RodrigoRodrigoR


Joined: 20 Jan 2013
Posts: 7
Location: Brazil
So, I quit! My forum messages never went to the mailing list anymore, even with a new Username :/
Create an API for accelerometer data
RodrigoCard


Joined: 23 Apr 2011
Posts: 113
Location: Brazil
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?
Create an API for accelerometer data
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
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:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Create an API for accelerometer data
Sik


Joined: 26 Nov 2011
Posts: 905
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:
Quote:
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:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Create an API for accelerometer data
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
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 wrote:
Quote:
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:
Quote:
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:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Re: Create an API for accelerometer data
josebagar


Joined: 10 Dec 2010
Posts: 87
I agree that the accelerometer data does not belong in the joystick API but I'd say it makes more sense to have a sensor API than just a specific accelerometer API. That way the user could retrieve data from all the sensors in the device (accelerometers, magnetometers, gyroscopes, GPS...) and not just accelerations.

I posted a message with a proposal for how the API could look like here:
http://forums.libsdl.org/viewtopic.php?t=8698

It's pretty much based on the SDL_Joystick API and I intend to write a small prototype sensor API for Android. I'll let you know if/when I get it working.

PS: It looks like my messages don't make it to the list either, so I'm going to use the raw list instead of the forum.



MrOzBarry wrote:
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 wrote:
Quote:
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:
Quote:
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:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Re: Create an API for accelerometer data
josebagar


Joined: 10 Dec 2010
Posts: 87
I agree that the accelerometer data does not belong in the joystick API but I'd say it makes more sense to have a sensor API than just a specific accelerometer API. That way the user could retrieve data from all the sensors in the device (accelerometers, magnetometers, gyroscopes, GPS...) and not just accelerations.

I posted a message with a proposal for how the API could look like here:
http://forums.libsdl.org/viewtopic.php?t=8698

It's pretty much based on the SDL_Joystick API and I intend to write a small prototype sensor API for Android. I'll let you know if/when I get it working.

PS: It looks like my messages don't make it to the list either, so I'm going to use the raw list instead of the forum.



MrOzBarry wrote:
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 wrote:
Quote:
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:
Quote:
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:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


RodrigoRodrigoR


Joined: 20 Jan 2013
Posts: 7
Location: Brazil
josebagar :

I think you should Re-send all of your Forum posts to the SDL Mailing list, you will get way more visibility as most people only read the list.

None of you posts on this thread AND this ones didnt get into the list:
http://forums.libsdl.org/viewtopic.php?t=8698
http://forums.libsdl.org/viewtopic.php?t=8697

Also, looks like only a few people are hitting this forum bug, maybe an ip filter?