Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - workmad3

Pages: [1]
1
Window / Joystick buttons
« on: April 21, 2008, 08:06:13 pm »
Quick question about joystick buttons in the Event structure.

Is the first button on the joystick 0, or 1? I'm writing a wrapper class for them in my event system and it's sort of important to know as I'm tracking references of the button states in collections :)

2
Feature requests / Radian helper functions
« on: April 11, 2008, 01:58:02 pm »
I mentioned this in another thread, but I'll put it here as well.

Helper functions/function overloads for when a transformation uses angles in degrees that would accept a radian argument instead and do the conversion would be a nice feature.

I know it isn't difficult to write the helper functions separately, but it's an extra thing to remember, along with doing an extra function call or multiplication every time they are used. An overload (possibly with the postfix character R, so a Rotate(float degrees) method would also have a RotateR(float radians) variant) to do this with an inline class method would make the conversion simpler to remember, and make SFML more appealing as it doesn't enforce a particular convention upon library users regarding how they should use angles :)

Pages: [1]