This commit is contained in:
Andy Killorin 2025-01-03 15:20:12 -05:00
parent 650ccf6ab4
commit 407c4f595d
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

View file

@ -81,7 +81,7 @@ fn main() {
glTranslatef(0., 1.0, -1.0); glTranslatef(0., 1.0, -1.0);
if slices[i] != -1. { if slices[i] != -1. {
slices[i] += 0.01; slices[i] += 0.01;
slices[i] *= 1.4; slices[i] *= 1.2;
glTranslatef(slices[i], 0.-slices[i]/2.0, 0.); glTranslatef(slices[i], 0.-slices[i]/2.0, 0.);
} }
glScalef(1., 0.4, 1.); glScalef(1., 0.4, 1.);
@ -95,6 +95,7 @@ fn main() {
yrot += 24.0; yrot += 24.0;
}; };
maple::keyboard::kbd_init();
// Done setting up, now let's loop! // Done setting up, now let's loop!
loop { loop {
@ -110,6 +111,19 @@ fn main() {
} }
}); });
match maple::keyboard::kbd_get_key() as u8 as char {
'a' => {
slices[0] = 0.0;
}
'b' => {
slices[1] = 0.0;
}
'c' => {
slices[2] = 0.0;
}
_ => {}
}
if done == true { if done == true {
break; break;