mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
st/gui: Use unique IDs instead of child windows
This commit is contained in:
parent
b3872e925f
commit
4e4246866b
|
@ -285,27 +285,23 @@ on_connected(struct gui_remote *gr, struct gui_program *p)
|
|||
const struct r_remote_data *r = &gr->reset;
|
||||
struct r_remote_data *d = &gr->data;
|
||||
|
||||
const ImVec2 hmd_size = {0, 46};
|
||||
const uint32_t hand_size = 23 * 5;
|
||||
const ImVec2 ctrl_size = {0, 64 + hand_size + 52};
|
||||
|
||||
igBeginChildStr("hmd", hmd_size, false, 0);
|
||||
igPushIDPtr(&d->hmd); // Make all IDs unique.
|
||||
POSE(hmd);
|
||||
igEndChild();
|
||||
igPopID(); // Pop unique IDs
|
||||
|
||||
igBeginChildStr("left", ctrl_size, false, 0);
|
||||
igPushIDPtr(&d->left); // Make all IDs unique.
|
||||
POSE(left);
|
||||
LIN_ANG(left);
|
||||
BUTTONS(left);
|
||||
HAND(left);
|
||||
igEndChild();
|
||||
igPopID(); // Pop unique IDs
|
||||
|
||||
igBeginChildStr("right", ctrl_size, false, 0);
|
||||
igPushIDPtr(&d->right); // Make all IDs unique.
|
||||
POSE(right);
|
||||
LIN_ANG(right);
|
||||
BUTTONS(right);
|
||||
HAND(right);
|
||||
igEndChild();
|
||||
igPopID(); // Pop unique IDs
|
||||
|
||||
igCheckbox("Predefined poses", &gr->cheat_menu);
|
||||
if (gr->cheat_menu) {
|
||||
|
|
Loading…
Reference in a new issue