0 Members and 2 Guests are viewing this topic.
draw_text = falsefunction on.paint() if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.up() draw_text = trueend
draw_text = falsefunction on.paint() if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.mouseUp() draw_text = true platform.window:invalidate()end
Code: [Select]draw_text = falsefunction on.paint() if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.up() draw_text = trueend
draw_text = falsefunction on.paint() if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.up() draw_text = true platform.window:invalidate()end
draw_text = falsefunction on.paint(gc) if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.mouseUp() draw_text = true platform.window:invalidate()end
draw_text = falsefunction on.paint(gc) if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.grabUp() draw_text = true platform.window:invalidate()end
draw_text = falsefunction on.paint(gc) if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.up() draw_text = true platform.window:invalidate()end
draw_text = falsefunction on.paint(gc) if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.mouseMove() draw_text = true platform.window:invalidate()end
Perhaps that last one returns a value corresponding to an actual key?
on.up doesn't exist (unless you define it and make a function to call it).
draw_text = falsefunction on.paint(gc) if draw_text then gc:drawString("Hello", 5, 5, "top") endendfunction on.arrowUp() draw_text = true platform.window:invalidate()end
draw_text = falsedir = nonefunction on.paint(gc) if draw_text then gc:drawString(dir, 5, 5, "top") endendfunction on.arrowUp() dir = "up" draw_text = trueendfunction on.arrowDown() dir = "down" draw_text = trueendfunction on.arrowLeft() dir = "left" draw_text = trueendfunction on.arrowRight() dir = "right" draw_text = trueend
BrownyTCat, what does that have to do with the objective of this post?
BrownyTCat, if you read the whole topic you can see we're talking about the touchpad.
Quote from: jimbauwens on June 15, 2011, 10:17:53 amon.up doesn't exist (unless you define it and make a function to call it).Hm, it is listed in the Wiki, maybe I'll remove it.