Advertisement
Guest User

Untitled

a guest
Sep 21st, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. void Text_Callback(GLFWwindow* window,unsigned int character)
  2. {
  3.     if(this_shared->is_chatting)
  4.     {
  5.         wchar_t* input = new wchar_t[1];
  6.         input[0]=character;
  7.         std::wstring ws(input);
  8.         this_shared->game_logic->chat_buffer->insert(this_shared->game_logic->chat_cursor_pos,input);
  9.         delete [] input;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement