Configuration tool to generate and test controller mappings.
|
void | showCombo (const std::string &label, const int count, const std::string &prefix, int ¤tId) |
| Display a numbered combo list for a given button or axis mapping. More...
|
|
void | drawButton (ImDrawList *drawList, const Controller::Input bid, const ImVec2 &pos, const ImU32 highlightColor) |
| Draw raw geometry for highlighting a given controller button. More...
|
|
void | drawPadTarget (const int idX, const int idY, const std::vector< float > &axesValues, const float threshRadius) |
| Draw a target circle and threshold along with the current pad position. More...
|
|
void | drawTriggerTarget (const int idT, const std::vector< float > &axesValues, const float threshRadius) |
| Draw a target line and threshold along with the current trigger position. More...
|
|
int | main (int argc, char **argv) |
|
◆ drawButton()
void drawButton |
( |
ImDrawList * |
drawList, |
|
|
const Controller::Input |
bid, |
|
|
const ImVec2 & |
pos, |
|
|
const ImU32 |
highlightColor |
|
) |
| |
Draw raw geometry for highlighting a given controller button.
- Parameters
-
drawList | the ImGui drawing list to use |
bid | the ID of the button to draw |
pos | the reference position on screen (upper-left corner of the controller overlay) |
highlightColor | the color to use for the highlight |
◆ drawPadTarget()
void drawPadTarget |
( |
const int |
idX, |
|
|
const int |
idY, |
|
|
const std::vector< float > & |
axesValues, |
|
|
const float |
threshRadius |
|
) |
| |
Draw a target circle and threshold along with the current pad position.
- Parameters
-
idX | the ID of the horizontal axis |
idY | the ID of the vertical axis |
axesValues | the axes raw values |
threshRadius | the radius of the filtering threshold |
◆ drawTriggerTarget()
void drawTriggerTarget |
( |
const int |
idT, |
|
|
const std::vector< float > & |
axesValues, |
|
|
const float |
threshRadius |
|
) |
| |
Draw a target line and threshold along with the current trigger position.
- Parameters
-
idT | the ID of the trigger axis |
axesValues | the axes raw values |
threshRadius | the value of the filtering threshold |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
The main function of the controller tester.
- Parameters
-
argc | the number of input arguments. |
argv | a pointer to the raw input arguments. |
- Returns
- a general error code.
◆ showCombo()
void showCombo |
( |
const std::string & |
label, |
|
|
const int |
count, |
|
|
const std::string & |
prefix, |
|
|
int & |
currentId |
|
) |
| |
Display a numbered combo list for a given button or axis mapping.
- Parameters
-
label | title of the combo |
count | number of items |
prefix | prefix to apply to each item in the list |
currentId | the currently selected item |