File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1350
1350
- name: character
1351
1351
type: string
1352
1352
1353
+ #*****************************************************************************************************
1354
+
1355
+ - name: add_input_characters
1356
+ type: function
1357
+
1358
+ parameters:
1359
+ - name: characters
1360
+ type: string
1361
+
1353
1362
#*****************************************************************************************************
1354
1363
1355
1364
- name: is_mouse_double_clicked
Original file line number Diff line number Diff line change @@ -475,6 +475,14 @@ static int imgui_AddInputCharacter(lua_State* L)
475
475
io.AddInputCharacter (c);
476
476
return 0 ;
477
477
}
478
+ static int imgui_AddInputCharacters (lua_State* L)
479
+ {
480
+ DM_LUA_STACK_CHECK (L, 0 );
481
+ ImGuiIO& io = ImGui::GetIO ();
482
+ const char * s = luaL_checkstring (L, 1 );
483
+ io.AddInputCharactersUTF8 (s);
484
+ return 0 ;
485
+ }
478
486
479
487
480
488
// ----------------------------
You can’t perform that action at this time.
0 commit comments