Add ui_device.js
isButtonPressed