Change-Id: I1de6471db98b6ac3539ff87810ab2c5aee4ffff2
for (int loop = 0;loop < MAX_KEY && !ended;loop++) {
SclButtonContext *button_context = cache->get_cur_button_context(pressed_window, loop);
- const SclLayoutKeyCoordinate *coordinate = cache->get_cur_layout_key_coordinate(window, loop);
+ const SclLayoutKeyCoordinate *coordinate = cache->get_cur_layout_key_coordinate(pressed_window, loop);
if (button_context && coordinate) {
if (!(button_context->used)) {
ended = TRUE;