Per Game Configuration - Input Device

Hi Folks, for Reicast, I want define games such as HOTD2 to use lightguns and the remainder to use Keyboard controls - without having to pop into the retroarch menu system to change them. I tried popping the input type config into the per game cfg file but I think I must be getting it wrong as I cant get it to work - can anyone help?