1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | View_ID view = get_active_view(app, Access_Always);
Scratch_Block scratch(app);
String_u8 commandString = string_u8_push(scratch, 10);
User_Input firstCommandInput = get_current_input(app);
User_Input nextCommandInput = get_next_input(app, EventProperty_TextInsert, EventProperty_Escape);
string_append_character(&commandString, *key_code_name[firstCommandInput.event.key.code]);
if (nextCommandInput.abort)
return;
else
string_append(&commandString, nextCommandInput.event.text.string);
.................
|
This issue is when I hit the 'get_next_input' function it just hangs no matter what I press. I was using the EventProperty_TextInsert flag because that seemed to be the only flag to get the key I pressed stored as text as well. Is this a bug or I'm I know using the api incorrectly?