SHARE
TWEET

Untitled

a guest Sep 21st, 2013 12 Never
  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. }
RAW Paste Data
Top