mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
clarified what Input::register_binding does. It returns a handle!
This commit is contained in:
parent
a1baaaf298
commit
05b58706d7
|
@ -791,13 +791,13 @@ namespace Blah
|
|||
// sets the string contents of the clipboard
|
||||
void set_clipboard(const String& text);
|
||||
|
||||
// registers a new binding
|
||||
ButtonBindingRef register_binding(const ButtonBinding& binding);
|
||||
// registers a new binding and returns a handle to it
|
||||
ButtonBindingRef register_binding(const ButtonBinding& binding_data);
|
||||
|
||||
// registers a new axis binding
|
||||
AxisBindingRef register_binding(const AxisBinding& binding);
|
||||
// registers a new binding and returns a handle to it
|
||||
AxisBindingRef register_binding(const AxisBinding& binding_data);
|
||||
|
||||
// registers a new stick binding
|
||||
StickBindingRef register_binding(const StickBinding& binding);
|
||||
// registers a new binding and returns a handle to it
|
||||
StickBindingRef register_binding(const StickBinding& binding_data);
|
||||
}
|
||||
}
|
|
@ -403,23 +403,23 @@ void Input::set_clipboard(const String& text)
|
|||
App::Internal::platform->set_clipboard(text);
|
||||
}
|
||||
|
||||
ButtonBindingRef Input::register_binding(const ButtonBinding& binding)
|
||||
ButtonBindingRef Input::register_binding(const ButtonBinding& binding_data)
|
||||
{
|
||||
auto result = Ref<ButtonBinding>(new ButtonBinding(binding));
|
||||
auto result = Ref<ButtonBinding>(new ButtonBinding(binding_data));
|
||||
g_buttons.push_back(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
AxisBindingRef Input::register_binding(const AxisBinding& binding)
|
||||
AxisBindingRef Input::register_binding(const AxisBinding& binding_data)
|
||||
{
|
||||
auto result = Ref<AxisBinding>(new AxisBinding(binding));
|
||||
auto result = Ref<AxisBinding>(new AxisBinding(binding_data));
|
||||
g_axes.push_back(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
StickBindingRef Input::register_binding(const StickBinding& binding)
|
||||
StickBindingRef Input::register_binding(const StickBinding& binding_data)
|
||||
{
|
||||
auto result = Ref<StickBinding>(new StickBinding(binding));
|
||||
auto result = Ref<StickBinding>(new StickBinding(binding_data));
|
||||
g_sticks.push_back(result);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user