private void RefreshInputHighlighting() { Log.Debug(TAG, "RefreshInputHighlighting"); for (int index = 0; index < selected_layout.ChildCount; index++) { View nextChild = selected_layout.GetChildAt(index); if (RESOURCE_TO_CONTROL_MAP.ContainsKey(nextChild.Id)) { var control_id = RESOURCE_TO_CONTROL_MAP[nextChild.Id]; SetInputBackground(nextChild, control_id); } } }
private void SetInputListeners(ViewGroup keyboard_view_group) { Log.Debug(TAG, "SetInputListeners"); for (int index = 0; index < keyboard_view_group.ChildCount; index++) { View nextChild = keyboard_view_group.GetChildAt(index); if (RESOURCE_TO_CONTROL_MAP.ContainsKey(nextChild.Id)) { var control_id = RESOURCE_TO_CONTROL_MAP[nextChild.Id]; if (IsAnalogControl(control_id)) { SetJoystickListener((JoyStickView)nextChild, control_id); } else { SetInputListener(nextChild, control_id); } } } }