adding button class on remote buttons

This commit is contained in:
Peli de Halleux
2018-02-05 13:57:24 -08:00
parent 56dd8e0875
commit 538493369b
2 changed files with 4 additions and 4 deletions

View File

@ -28,11 +28,11 @@ namespace pxsim.visuals {
"bottomleft": InfraredRemoteButton.BottomLeft,
"bottomright": InfraredRemoteButton.BottomRight
}
Object.keys(btns).forEach(bid => {
const cid = btns[bid];
const bel = content.getElementById(pxsim.visuals.normalizeId(this.id, bid));
bel.className += " sim-button";
bel.setAttribute("class", "sim-button");
pointerEvents.down.forEach(evid => bel.addEventListener(evid, ev => {
ev3board().remoteState.setPressed(cid, true);
}));