[PATCH] Input: check switch bitmap when matching handlers