Fixed getButtonClick for analog buttons