alpha
Login
or
Join now
arthomnix.dev
/
eepy
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
firmware for my Touchscreen E-Paper Input Module for Framework Laptop 16
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
eepy-example-app: improve exit button
author
arthomnix
date
7 months ago
(Nov 6, 2025, 1:39 AM UTC)
commit
05172ce0
05172ce0ab889ecca08a52539a43db591bc52296
parent
343ad0ab
343ad0ab1682e921d59f157e20dc257fed3db5ef
+6
-3
1 changed file
Expand all
Collapse all
Unified
Split
eepy-example-app
src
main.rs
+6
-3
eepy-example-app/src/main.rs
Reviewed
···
57
57
58
58
loop {
59
59
while let Some(ev) = next_event() {
60
60
-
if exit_button.tick(&mut draw_target, ev).clicked {
60
60
+
let mut needs_refresh = false;
61
61
+
62
62
+
let exit_res = exit_button.tick(&mut draw_target, ev);
63
63
+
if exit_res.clicked {
61
64
save_counter(counter);
62
65
return;
66
66
+
} else if exit_res.needs_refresh {
67
67
+
draw_target.refresh(true);
63
68
}
64
64
-
65
65
-
let mut needs_refresh = false;
66
69
67
70
let response = button.tick(&mut draw_target, ev);
68
71
if response.clicked {