Fix Stuck Modifiers on Disconnection
This commit is contained in:
parent
a081a9f5c4
commit
71b214ca43
3 changed files with 10 additions and 0 deletions
|
|
@ -402,6 +402,13 @@ void passthrough(std::shared_ptr<input_t> &input, std::vector<std::uint8_t> &&in
|
|||
task_pool.push(passthrough_helper, input, util::cmove(input_data));
|
||||
}
|
||||
|
||||
void reset(){
|
||||
for(auto& kp : key_press){
|
||||
platf::keyboard(platf_input, kp.first & 0x00FF, true);
|
||||
key_press[kp.first] = false;
|
||||
}
|
||||
}
|
||||
|
||||
void init() {
|
||||
platf_input = platf::input();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue