-1
儘管「不支持」,AntTweakBar仍然是廣泛使用或至少似乎是。但是,我不能讓它接受來自GLFW 3.2的鍵盤輸入。當我創建一個簡單的GUI面板和AntTweakBar鍵輸入和GLFW 3
TwBar *myBar;
myBar = TwNewBar("NameOfMyTweakBar");
double speed = .3;
TwAddVarRW(myBar, "speed", TW_TYPE_DOUBLE, &speed, "label='Rot Speed' min=0 max=2 step=0.01 keyIncr=s keyDecr=S help='Rotation speed (turns/second)' ");
,然後一個調整吧設法得到它,接受它返回0,我沒有運氣嘗試焦炭回調以及按鍵輸入。這個圖書館是絕望過時的嗎? 還有哪些類似的圖書館可供選擇?
void glfwKeyCallback(GLFWwindow *myWin, int key, int scancode, int action, int mods)
{
cout << "TwEventKeyGLFW = " << TwEventKeyGLFW(key, action) << endl;
}