|
ReXGlue SDK
|
#include <rex/hid/binding.h>
Public Member Functions | |
| virtual Result< void > | Register (ISettingsRegistry &settings)=0 |
| virtual void | Unregister ()=0 |
| virtual size_t | GetCount () const =0 |
| virtual std::span< const InputSource > | GetSources (size_t binding) const =0 |
| virtual bool | SetSource (size_t binding, size_t slot, const InputSource &source)=0 |
| virtual bool | SetSources (size_t binding, std::span< const InputSource > sources)=0 |
| virtual bool | Clear (size_t binding)=0 |
| virtual bool | Reset (size_t binding)=0 |
| virtual bool | ResetGroup (u32 group)=0 |
| virtual std::optional< size_t > | FindConflict (size_t binding, const InputSource &source) const =0 |
| virtual std::optional< size_t > | FindBySetting (std::string_view setting_name) const =0 |
| virtual u32 | GetGeneration () const =0 |
| virtual std::vector< std::string > | TakeParseErrors ()=0 |
The input bindings of an application, one string setting per binding. A plain binding is a comma separated list of inputs. In a stick row item N fills key half N, an empty item keeps its position, and a whole stick input such as LStick takes no position. Text with a bad item is rejected as a whole and TakeParseErrors names each bad item. Create one with IInputSystem::CreateBindingSet. UI thread only.
|
pure virtual |
Removes every input of a binding.
| binding | The index into the descriptions. |
|
nodiscardpure virtual |
Finds the binding behind a setting.
| setting_name | The full setting name, scope.name. |
|
nodiscardpure virtual |
Finds another binding of the same group that already uses an input.
| binding | The index into the descriptions of the binding being edited. |
| source | The input to look for, compared with IsSameInput. |
|
nodiscardpure virtual |
Returns a counter that rises on every change of any binding, which starts above 0.
|
nodiscardpure virtual |
| binding | The index into the descriptions. |
|
nodiscardpure virtual |
Registers the settings and follows them. Values from a config file or the command line are read now.
| settings | The registry, which must outlive the registration. |
|
pure virtual |
Restores the default of a binding.
| binding | The index into the descriptions. |
|
pure virtual |
Restores the default of every binding in a group.
| group | The group value of the descriptions. |
|
pure virtual |
Replaces one input of a binding, or appends it when the slot is past the end.
| binding | The index into the descriptions. |
| slot | The position in GetSources. |
|
pure virtual |
Replaces all inputs of a binding.
| binding | The index into the descriptions. |
|
nodiscardpure virtual |
Returns the messages about text that did not parse since the last call and clears them. There is one message per bad item, naming the binding.
|
pure virtual |
Removes the settings from the registry. The sources keep their last values.