(BlackBerry) Clean-ups and additions for GUI button mapping, fix BB10 after frontend merge.

This should get BB10 working again. It's not the cleanest in frontend.c but it seems to work. 4 player controller mapping works in the Cascades frontend.