主权项 |
1. A keyboard comprising:
a plurality of keys, each key having a top surface; one or more optical sensors located below top surfaces of adjacent keys, each of the one or more optical sensors comprising a respective light emitter and a respective light sensor; one or more light guides, each of the one or more light guides extending from a respective optical sensor towards the top surfaces, each of the one or more light guides configured to: channel light from the respective light emitter towards the top surfaces of the adjacent keycaps; and channel the light reflected back to the respective light sensor for detection; at least one decoration bar located between the plurality of keys, the at least one decoration bar in communication with the one or more optical sensors, the at least one decoration bar comprising the one or more light guides, each configured to guide light to a respective optical sensor; and, a processor in communication with the one or more optical sensors, the processor configured to convert detection events at adjacent optical sensors that occur within a given time period to one or more of gesture-based events and gesture-based events at a display, wherein each of the one or more light guides further comprises at least one respective lens integrated with the at least one decoration bar, the at least one respective lens configured to: disperse the light from the respective light emitter; and, collect the light reflected back to the respective light sensor for detection. |