konopoETshwerwe
→ mouseIsPressedIs `nnete` while any mouse button is held down, and `maaka` otherwise.
konopoETshwerweRead it inside tshwantsha to do something for the whole time a button is held — drawing only while pressed, for example.
fa (konopoETshwerwe) { thalaSediko(pebaX, pebaY, 20); }
It is not pebaETobeditswe, which runs once per press. To count presses, use the event; to do something continuously while the button is down, use konopoETshwerwe.
taetsiETshwerweis its keyboard twin — the same name with the device word swapped.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 260);
bokamorago(244);
khesara(SEFAPAANO);
tlhalosa('Kanefase e o thalang dintlha tse dinnye mo go yona fa o tshwere konopo ya peba.');
}
tiro tshwantsha() {
tlogelaMothalo();
tlatsaMmala(60, 120, 190, 90);
fa (konopoETshwerwe) {
thalaSediko(pebaX, pebaY, 16);
}
}See also
Section titled “See also”konopoYaPeba, taetsiETshwerwe, pebaETobeditswe, pebaX, pebaY