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

Method update

plugins/uiSystem.js:1124–1138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1122 }
1123
1124 update()
1125 {
1126 super.update();
1127
1128 if (!this.isKeyInputObject())
1129 return;
1130
1131 // click off object to stop editing
1132 if (mouseWasPressed(0) && !this.isMouseOverlapping() ||
1133 gamepadWasPressed(0, gamepadPrimary))
1134 {
1135 this.stopEditing();
1136 inputClearKey(0,0);
1137 }
1138 }
1139
1140 render()
1141 {

Callers

nothing calls this directly

Calls 7

stopEditingMethod · 0.95
mouseWasPressedFunction · 0.85
gamepadWasPressedFunction · 0.85
inputClearKeyFunction · 0.85
isKeyInputObjectMethod · 0.80
isMouseOverlappingMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected