added methods for getting button/analogstick state
Merge remote-tracking branch 'origin/master'