dinput: COM cleanup - use helper function instead of direct typecast in linuxinput...