Browse Source

gamebridge: clear the controller every input frame

gamebridge
Cadey Ratio 11 months ago
parent
commit
afd84937a1
  1. 5
      gamebridge/src/main.rs

5
gamebridge/src/main.rs

@ -55,8 +55,9 @@ fn main() -> Result<()> {
match str {
"OK\n" => {
let data = st.read().unwrap();
input.write(&data.controller)?
let mut data = st.write().unwrap();
input.write(&data.controller)?;
data.controller = [0; 4];
}
"BYE" => {
warn!("asked to exit by the game");

Loading…
Cancel
Save