mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 14:34:34 +00:00
More WIP towards multiple input sets
This commit is contained in:
parent
b438064517
commit
bf94d541cd
21 changed files with 449 additions and 232 deletions
|
@ -24,9 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
JoystickConfig::JoystickConfig()
|
||||
{
|
||||
s1ax = 0;
|
||||
s1ay = 0;
|
||||
s2ax = 0;
|
||||
s2ay = 0;
|
||||
s1ay = 1;
|
||||
s2ax = 2;
|
||||
s2ay = 3;
|
||||
s1dead = 0.3f;
|
||||
s2dead = 0.3f;
|
||||
}
|
||||
|
@ -92,6 +92,13 @@ int ActionSet::_whichJoystickForName()
|
|||
return -1;
|
||||
}
|
||||
|
||||
void ActionSet::updateJoystick()
|
||||
{
|
||||
Joystick *j = core->getJoystick(joystickID);
|
||||
if(j)
|
||||
j->setEnabled(enabled);
|
||||
}
|
||||
|
||||
ActionInput *ActionSet::getActionInputByName(const std::string &name)
|
||||
{
|
||||
for (ActionInputSet::iterator i = inputSet.begin(); i != inputSet.end(); i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue