Subversion Repositories Kolibri OS

Rev

Rev 6393 | Rev 6397 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6393 Rev 6395
Line 19... Line 19...
19
  
19
 
20
  kolibri_window_add_element(main_window, KOLIBRI_EDIT_BOX, textbox);
20
  kolibri_window_add_element(main_window, KOLIBRI_EDIT_BOX, textbox);
21
  kolibri_window_add_element(main_window, KOLIBRI_CHECK_BOX, checkbox);
21
  kolibri_window_add_element(main_window, KOLIBRI_CHECK_BOX, checkbox);
Line 22... Line 22...
22
  kolibri_window_add_element(main_window, KOLIBRI_BUTTON, button);
22
  kolibri_window_add_element(main_window, KOLIBRI_BUTTON, button);
Line 23... Line 23...
23
  
23
 
24
  volatile unsigned press_key2;
24
  volatile unsigned press_key;
25
  
25
 
26
  do  /* Start of main activity loop */
26
  do  /* Start of main activity loop */
27
    {
27
    {
28
      if(gui_event == KOLIBRI_EVENT_REDRAW)
28
      if(gui_event == KOLIBRI_EVENT_REDRAW)
29
	{
29
	{
30
	  kolibri_handle_event_redraw(main_window);
30
	  kolibri_handle_event_redraw(main_window);
-
 
31
	}
31
	}
32
      else if(gui_event == KOLIBRI_EVENT_KEY)
32
      else if(gui_event == KOLIBRI_EVENT_KEY)
33
	{
33
	{
34
/* siemargl commented out because keys stealed from textinput
34
	  key = get_key();
35
	  key = get_key();
35
	  switch (key.code)
36
	  switch (key.code)
Line 41... Line 42...
41
			debug_board_write_str(textbox->text);
42
			debug_board_write_str(textbox->text);
42
			debug_board_write_str("\n");
43
			debug_board_write_str("\n");
43
			break;
44
			break;
44
	  }
45
	  }
45
	  press_key = key.val;
46
	  press_key = key.val;
-
 
47
*/
46
	  kolibri_handle_event_key(main_window);
48
	  kolibri_handle_event_key(main_window);
47
	}
49
	}
48
      else if(gui_event == KOLIBRI_EVENT_BUTTON)
50
      else if(gui_event == KOLIBRI_EVENT_BUTTON)
49
	{
51
	{
50
	  unsigned int pressed_button = kolibri_button_get_identifier();
52
	  unsigned int pressed_button = kolibri_button_get_identifier();