Not sure if it would be of any help, but there's been a few people working on this game here before. You might be able to find some hints in what they've already done.
Looks like I can't post links to the threads, let me see what happens when I remove the gbatemp part from them...