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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user