These are continuous rotary encoder switch with a built in push button switch (push to operate).
Can be used for data entry as with modern in car CD players, for volume & on/off control or data selection via LED or LCD display. Perfect for use with PIC or ATMEL microcontrollers.