Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. macro set_event_mask mask {
  3.    mov  ebx, mask
  4.    mov  eax, 40
  5.    int  0x40
  6. }
  7.  
  8. macro wait_for_event {
  9.    mov  eax, 10
  10.    int  0x40
  11. }
  12.  
  13. macro check_for_event {
  14.    mov  eax, 11
  15.    int  0x40
  16. }
  17.  
  18. macro wait_for_event_timeout timeout {
  19.    mov  ebx,timeout
  20.    mov  eax, 23
  21.    int  0x40
  22. }
  23.  
  24.  
  25. event_redraw     equ 1 shl 0
  26. event_keyboard   equ 1 shl 1
  27. event_button     equ 1 shl 2
  28. event_background equ 1 shl 4
  29. event_mouse      equ 1 shl 5
  30. event_ipc        equ 1 shl 6
  31. event_network    equ 1 shl 7
  32. event_debug      equ 1 shl 8
  33. event_irq0       equ 1 shl 15
  34. event_irq1       equ 1 shl 16
  35. event_irq2       equ 1 shl 17
  36. event_irq3       equ 1 shl 18
  37. event_irq4       equ 1 shl 19
  38. event_irq5       equ 1 shl 20
  39. event_irq6       equ 1 shl 21
  40. event_irq7       equ 1 shl 22
  41. event_irq8       equ 1 shl 23
  42. event_irq9       equ 1 shl 24
  43. event_irq10      equ 1 shl 25
  44. event_irq11      equ 1 shl 26
  45. event_irq12      equ 1 shl 27
  46. event_irq13      equ 1 shl 28
  47. event_irq14      equ 1 shl 29
  48. event_irq15      equ 1 shl 30
  49.  
  50.