Skip to content

Commit

Permalink
input: don't add weird padding when formatting keycode
Browse files Browse the repository at this point in the history
No idea what this was for. It has no purpose and looks weird.
  • Loading branch information
wm4 committed Oct 16, 2014
1 parent b5ca94a commit 0a7a70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/keycodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void mp_input_append_key_name(bstr *buf, int key)
}

// Print the hex key code
bstr_xappend_asprintf(NULL, buf, "%#-8x", key);
bstr_xappend_asprintf(NULL, buf, "0x%x", key);
}

char *mp_input_get_key_name(int key)
Expand Down

0 comments on commit 0a7a70f

Please sign in to comment.