2 #include <ail/string.hpp>
4 #include "keyboard.hpp"
5 #include "d2_functions.hpp"
10 bool chat_box
= false;
13 void process_key(unsigned virtual_key
)
15 if(!player_is_in_game())
16 //only process key presses when the player is in game
21 if(virtual_key
== VK_RETURN
|| virtual_key
== VK_ESCAPE
)
26 if(virtual_key
== VK_RETURN
)
30 //write_line("Key down: " + ail::hex_string_32(virtual_key));
31 python::perform_keyboard_callback(virtual_key
);