MCPcopy
hub / github.com/KilledByAPixel/LittleJS / click

Method click

plugins/uiSystem.js:976–981  ·  view source on GitHub ↗

Internal function called when object is clicked * @param {boolean} [playSound]

(playSound=true)

Source from the content-addressed store, hash-verified

974 /** Internal function called when object is clicked
975 * @param {boolean} [playSound] */
976 click(playSound=true)
977 {
978 this.onClick();
979 if (playSound && this.soundClick)
980 this.soundClick.play();
981 }
982
983 /** Called each frame before object updates */
984 onUpdate() {}

Callers 3

updateMethod · 0.95
navigatePressedMethod · 0.95
saveDataURLFunction · 0.45

Calls 2

onClickMethod · 0.95
playMethod · 0.45

Tested by

no test coverage detected