Fixed a bug with keys_to_state, keyboard input is now functional
1 files changed, 1 insertions(+), 1 deletions(-) M src/lib.rs
M src/lib.rs => src/lib.rs +1 -1
@@ 146,7 146,7 @@ pub fn mem_to_buf(memory: &[u16]) -> Vec<u32> { pub fn keys_to_state(keys: Vec<Key>) -> Vec<u16> { //output is using only 10 bits each to match with let mut result = 0u128; //rest of system for key in keys { //see minifb docs for what number each key is result &= 1 << (key as usize); result |= 1 << (key as usize); } let mut output = Vec::new(); for i in 0..11 {