inputtype::button renamed to inputtype::mouse
This commit is contained in:
@@ -73,7 +73,7 @@ void Events::pullEvents(){
|
||||
bool newstate = false;
|
||||
switch (binding.type) {
|
||||
case inputtype::keyboard: newstate = pressed(binding.code); break;
|
||||
case inputtype::button: newstate = clicked(binding.code); break;
|
||||
case inputtype::mouse: newstate = clicked(binding.code); break;
|
||||
}
|
||||
|
||||
if (newstate) {
|
||||
|
||||
+2
-2
@@ -80,7 +80,7 @@ namespace mousecode {
|
||||
|
||||
enum class inputtype {
|
||||
keyboard,
|
||||
button,
|
||||
mouse,
|
||||
};
|
||||
|
||||
struct Binding {
|
||||
@@ -100,7 +100,7 @@ struct Binding {
|
||||
const char* text() const {
|
||||
switch (type) {
|
||||
case inputtype::keyboard: return keycode::name(code);
|
||||
case inputtype::button: return mousecode::name(code);
|
||||
case inputtype::mouse: return mousecode::name(code);
|
||||
}
|
||||
return "<unknown input type>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user