I want to stress that your original solution was perfectly fine as well for MAME (there are several drivers using an 'abstract' input port which is only included+modified by the specific games needs).
but, in this specific case, the use of IPT_UNUSED makes more clear where the difference is (i.e. the 6th bit is unused)
|