Add state caching for stencil test.
Add names to the magic numbers of left joystick input (Qt/Blackberry).
Many platforms don't have GLchar defined, just check if it is instead.