gamebridge: clear the controller every input frame
This commit is contained in:
parent
26b6c1dfd3
commit
afd84937a1
|
@ -55,8 +55,9 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
match str {
|
match str {
|
||||||
"OK\n" => {
|
"OK\n" => {
|
||||||
let data = st.read().unwrap();
|
let mut data = st.write().unwrap();
|
||||||
input.write(&data.controller)?
|
input.write(&data.controller)?;
|
||||||
|
data.controller = [0; 4];
|
||||||
}
|
}
|
||||||
"BYE" => {
|
"BYE" => {
|
||||||
warn!("asked to exit by the game");
|
warn!("asked to exit by the game");
|
||||||
|
|
Loading…
Reference in New Issue