Implement button navigation rules for gamepads. Fix mouse click / gamepad transition key conflicting. Fix how a pointer is generated for components via the Component<> reference template. Since we sometimes want to dynamic cast it, it loses all its typing data if we make a new shared pointer instead.

This commit is contained in:
2024-01-19 00:07:29 -06:00
parent aec9646d40
commit dfa014b0a9
8 changed files with 30 additions and 25 deletions
+3 -3
View File
@@ -139,21 +139,21 @@ void InputGroup::RemoveKeybind(Input bind){
keys.erase(bind);
}
bool InputGroup::Pressed(){
const bool InputGroup::Pressed()const{
for(Input input:keys){
if(input.Pressed())return true;
}
return false;
}
bool InputGroup::Held(){
const bool InputGroup::Held()const{
for(Input input:keys){
if(input.Held())return true;
}
return false;
}
bool InputGroup::Released(){
const bool InputGroup::Released()const{
for(Input input:keys){
if(input.Released())return true;
}