I am going to implement a customized shape of control like a D-PAD for my Android application.
As you can see from the picture, there are 5 control buttons. But everyone knows that a view's touch area is a rectangle. My target is to fire the correct touch event when user is touch inside the visible bounds of each control.
My primitive idea is to intercept the touch event and do some pure geometric computation. But I found it is somehow every complicated and not seem a good way to solve this problem.
Is there anyone could give me some inspiration?