News for hackers. Stuff that matters.

Larowyn

Re:Could ImGUI Be the Future of GUIs? on Sunday April 28, 2019 @06:11AM (#19770301)
That's not how it would go, you don't need state to handle different events, in the case you describe the button is not clicked, of course the button would not trigger on anything else than a mouseup that would be incredibly dumb. It will go something like this: - The mouse is on top of the button, you could render your button differently with that information. - The mousdown event trigger on top of the button again you can do something to make the button render differently. - If the mouseup event occur the button trigger. Instead of keeping a state on your button you render your uis elements conditionned on the cursor position and state of the mouse (up or down)
Re:For babies, life may be like an LSD trip on Tuesday July 24, 2018 @09:03AM (#17600608)
That may not be true that people used to have less time. For example this article: http://www.businessinsider.fr/us/american-worker-less-vacati... state that medieval peasant had more free time than actual american worker. Did they use this time to take drug is another topic though.