Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Text_Callback(GLFWwindow* window,unsigned int character)
- {
- if(this_shared->is_chatting)
- {
- wchar_t* input = new wchar_t[1];
- input[0]=character;
- std::wstring ws(input);
- this_shared->game_logic->chat_buffer->insert(this_shared->game_logic->chat_cursor_pos,input);
- delete [] input;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement