pebaEGolotswe
→ mouseReleased()Runs once when a mouse button is let go.
tiro pebaEGolotswe() { ... }Declare pebaEGolotswe as a function with tiro, and Bopa will call it when a mouse button is released after having been pressed.
It is one of three that run in a fixed order: pebaETobeditswe as the button goes down, pebaEGolotswe as it comes back up, and pebaEKonyilwe immediately after that.
On a phone, a finger does the mouse’s job.
pebaEGolotsweruns when a finger leaves the screen.
Examples
Section titled “Examples”diri xa = 0;
diri ya = 0;
tiro setaLoeto() {
thalaKanefase(400, 260);
bokamorago(240);
boketeMothalo(3);
mothaloMmala(70, 120, 190);
tlhalosa('Mothalo o mosha o thadiwa go tswa kwa o tobeditseng teng go ya kwa o golotseng teng.');
}
tiro pebaETobeditswe() {
xa = pebaX;
ya = pebaY;
}
tiro pebaEGolotswe() {
thalaMothalo(xa, ya, pebaX, pebaY);
}