move mouse.c into platform
borrow u8enc() from libxkbcommon, thanks!
add defines for RTB_KEY_NUMPAD_ENTER and RTB_KEY_ENTER