I think this is a misunderstanding as to what the buttons array does.
The button array define which buttons are read and used as input, but not their action. It is an arry of accepted buttons. So if you want the left click to stop working and doing what it is intended to do, you remove 0 from the array. if you don’t want tight click to ever work, remove the 2 from the array. but it does not mean that when removing 0, 2 will take its place.
would be wonderful to have a playground. the reason the playground complains in the generic way the inputs were implemented. try either casting to the right class (the PointerInput class of the camer you are using) or cast to any, just for the sake of making it work. This will be easier for us