input.add_callback
This commit is contained in:
@@ -85,6 +85,7 @@ void Events::pollEvents() {
|
||||
if (!binding.state) {
|
||||
binding.state = true;
|
||||
binding.justChange = true;
|
||||
binding.onactived.notify();
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -105,7 +106,7 @@ void Events::bind(std::string name, inputtype type, mousecode code) {
|
||||
}
|
||||
|
||||
void Events::bind(std::string name, inputtype type, int code) {
|
||||
bindings[name] = { type, code, false, false };
|
||||
bindings[name] = Binding(type, code);
|
||||
}
|
||||
|
||||
bool Events::active(std::string name) {
|
||||
|
||||
Reference in New Issue
Block a user