Subversion Repositories Kolibri OS

Rev

Rev 8283 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8283 Rev 8824
Line 1028... Line 1028...
1028
  mov  eax,SF_TERMINATE_PROCESS
1028
  mov  eax,SF_TERMINATE_PROCESS
1029
  ret
1029
  ret
1030
endp
1030
endp
Line 1031... Line 1031...
1031
 
1031
 
-
 
1032
align 4
-
 
1033
proc @Kolibri@GetMousePosition$qrst1o uses ebx
-
 
1034
  mov  eax,SF_MOUSE_GET
-
 
1035
  xor  ebx,ebx ;SSF_SCREEN_POSITION
-
 
1036
  cmp  byte [esp+16],0
-
 
1037
  jnz  @f
-
 
1038
  inc  ebx ;SSF_WINDOW_POSITION
-
 
1039
@@:
-
 
1040
  int  0x40
-
 
1041
  mov  ecx,[esp+12]
-
 
1042
  mov  word [ecx],ax
-
 
1043
  mov  ecx,[esp+8]
-
 
1044
  shr  eax,16
-
 
1045
  mov  word [ecx],ax
-
 
1046
  ret
-
 
1047
endp
-
 
1048
 
1032
align 4
1049
align 4
1033
proc @Kolibri@GetMouseButton$qv uses ebx
1050
proc @Kolibri@GetMouseButton$qv uses ebx
1034
  mov  eax,SF_MOUSE_GET
1051
  mov  eax,SF_MOUSE_GET
1035
  mov  ebx,SSF_BUTTON
1052
  mov  ebx,SSF_BUTTON_EXT
1036
  int  0x40
1053
  int  0x40
1037
  ret
1054
  ret
Line 1038... Line 1055...
1038
endp
1055
endp
1039
 
1056
 
1040
align 4
1057
align 4
1041
proc @Kolibri@GetMousePosition$qrst1o uses ebx
1058
proc @Kolibri@GetMouseScrollData$qrst1 uses ebx
1042
  mov  eax,SF_MOUSE_GET
-
 
1043
  xor  ebx,ebx ;SSF_SCREEN_POSITION
-
 
1044
  cmp  byte [esp+16],0
-
 
1045
  jnz  .get_mouse_pos_absolute
-
 
1046
  inc  ebx
1059
  mov  eax,SF_MOUSE_GET
1047
.get_mouse_pos_absolute:
1060
  mov  ebx,SSF_SCROLL_DATA
1048
  int  0x40
1061
  int  0x40
1049
  mov  ecx,[esp+12]
1062
  mov  ecx,[esp+12]
1050
  mov  word [ecx],ax
1063
  mov  word [ecx],ax