A switching device for a portable apparatus, comprises a button disposed in an opening formed in a housing. The Microsystem of the invention is made of one or several semiconductor dies, with complementary functionality, that are integrated both vertically and horizontally. Via an opening formed in a wall of the conductive housing, the photoelectrons are output to the outside of the cavity.