Using a touchscreen in Dynamics NAV with a variable number of buttons is possible.
This fob contains a form 50000 (documentation on how to use the form is in the documentation section) and is an example on how to use touchscreens in Dynamics NAV.
PS : change also the dimensions of the form when running it and see what happens to the buttons.