gamebridge: Twitch Control #2

Merged
cadey merged 29 commits from gamebridge into master 2020-05-11 22:40:05 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit afd84937a1 - Show all commits

View File

@ -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");