Miscellaneous optimizations to gamepad polling