First, hold the button in your hand and right click a solid block to place the button. Then, face the button and right click it again, this will press the button.
A mechanical mouse is an older design, using a small "track ball" to detect movement as you roll across your mouse-pad. An optical mouse uses a sensor to detect movement...
Connect a keyboard to your console, then switch the control mode from "Controller" to "Keyboard". Your console may not support keyboard and mouse play, but it is worth a shot.