Searched refs:button_num (Results 1 – 1 of 1) sorted by relevance
35 int button_num; in GetMouseButton() local36 if (!params.GetInteger("button", &button_num)) { in GetMouseButton()37 button_num = 0; // Default to left mouse button. in GetMouseButton()38 } else if (button_num < 0 || button_num > 2) { in GetMouseButton()40 base::StringPrintf("invalid button: %d", button_num)); in GetMouseButton()42 *button = static_cast<MouseButton>(button_num); in GetMouseButton()