(D3D) Ifdefs for HAVE_CG (and miscellaneous)
win32: detect joypad changes
Merge pull request #505 from OV2/w32joyhotplug

win32: detect joypad changes
Only destroy dinput if non-NULL.
(iOS) Add ‘Small Keyboard’ input mode which repurposes certain keys while right shift is held.

Notably the tilde, number keys, minus and equals are changed to send Escape and F1-F12.  This is useful on iPad specific keyboards where these keys are otherwise unavailable.
(Apple) Don’t report out of bounds touches as being pressed.
Merge remote-tracking branch 'upstream/master'