key_event_desc.touch_event_order = context->get_multi_touch_event_order(touch_id);
- SCLEventReturnType evt = handler->on_event_drag_state_changed(key_event_desc);
+ handler->on_event_drag_state_changed(key_event_desc);
}
}
sclint button_index = NOT_USED;
SclWindowContext *window_context = NULL;
- if (windows) {
+ if (windows && cache) {
const SclLayout *layout = cache->get_cur_layout(window);
if (layout) {
x += layout->mouse_manipulate_x;
if (sclres_manager) {
magnifier_configure = sclres_manager->get_magnifier_configure();
}
- if (coordinate && magnifier_configure) {
+ if (coordinate && magnifier_configure && utils && state) {
sclchar composed_path[_POSIX_PATH_MAX] = {0, };
- if (state && state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY) {
+ if (state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY) {
m_utils->get_composed_path(composed_path, IMG_PATH_PREFIX, magnifier_configure->bg_long_key_image_path);
m_gwes->m_graphics->draw_image(window, draw_ctx, composed_path, NULL, 0, 0,
magnifier_configure->width * utils->get_custom_scale_rate_x(),
for (int shift_loop = 0;shift_loop < SCL_SHIFT_STATE_MAX;shift_loop++) {
if ((shift_state == shift_loop || shift_state == -1)) {
xmlChar* key = xmlNodeGetContent(child_node);
- if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"label")) {
- if (auto_upper) {
- if (xmlStrlen(key) == 1 && shift_loop != SCL_SHIFT_STATE_OFF) {
- /* Let's manipulate the string for auto_upper */
- *key = toupper(*(cur_rec->autopopup_key_labels[SCL_SHIFT_STATE_OFF][autopopup_state]));
+ if (key) {
+ if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"label")) {
+ if (auto_upper) {
+ if (xmlStrlen(key) == 1 && shift_loop != SCL_SHIFT_STATE_OFF) {
+ /* Let's manipulate the string for auto_upper */
+ *key = toupper(*(cur_rec->autopopup_key_labels[SCL_SHIFT_STATE_OFF][autopopup_state]));
+ }
}
- }
- cur_rec->autopopup_key_labels[shift_loop][autopopup_state] = (sclchar*)key;
- /* If current key_value is NULL, let's just consider this label is the default key_value */
- if (cur_rec->autopopup_key_values[shift_loop][autopopup_state] == NULL) {
+ cur_rec->autopopup_key_labels[shift_loop][autopopup_state] = (sclchar*)key;
+ /* If current key_value is NULL, let's just consider this label is the default key_value */
+ if (cur_rec->autopopup_key_values[shift_loop][autopopup_state] == NULL) {
+ cur_rec->autopopup_key_values[shift_loop][autopopup_state] = (sclchar*)key;
+ }
+ } else if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"value")) {
cur_rec->autopopup_key_values[shift_loop][autopopup_state] = (sclchar*)key;
+ } else if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"event")) {
+ cur_rec->autopopup_key_events[shift_loop][autopopup_state] = atoi((sclchar*)key);
}
- } else if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"value")) {
- cur_rec->autopopup_key_values[shift_loop][autopopup_state] = (sclchar*)key;
- } else if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"event")) {
- cur_rec->autopopup_key_events[shift_loop][autopopup_state] = atoi((sclchar*)key);
+ add_key_string(key);
}
- add_key_string(key);
}
}
}