Subversion Repositories Kolibri OS

Rev

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

Rev 3958 Rev 3991
Line 32... Line 32...
32
 
32
 
Line 33... Line 33...
33
//-------------------------------------------------------------------------
33
//-------------------------------------------------------------------------
34
 
34
 
35
struct mouse
35
struct mouse
36
{
36
{
37
	signed int x,y,lkm,pkm,hor,vert;
37
	signed x,y,lkm,pkm,hor,vert;
Line 38... Line 38...
38
	void get();
38
	void get();
39
};
39
};
Line 46... Line 46...
46
	$mov	ebx, eax
46
	$mov	ebx, eax
47
	$shr	eax, 16
47
	$shr	eax, 16
48
	$and	ebx,0x0000FFFF
48
	$and	ebx,0x0000FFFF
49
	x = EAX;
49
	x = EAX;
50
	y = EBX;
50
	y = EBX;
-
 
51
	if (x>6000) x-=65535;
-
 
52
	if (y>6000) y-=65535;
51
	EAX = 37;
53
	EAX = 37;
52
	EBX = 2;
54
	EBX = 2;
53
	$int	0x40
55
	$int	0x40
54
	$mov	ebx, eax
56
	$mov	ebx, eax
55
	$and	eax, 0x00000001
57
	$and	eax, 0x00000001
Line 63... Line 65...
63
	$mov	ebx, eax
65
	$mov	ebx, eax
64
	$shr	eax, 16
66
	$shr	eax, 16
65
	$and	ebx,0x0000FFFF
67
	$and	ebx,0x0000FFFF
66
	//hor = EAX;
68
	//hor = EAX;
67
	vert = EBX;
69
	vert = EBX;
68
	if (y>6000) y=0;
-
 
69
}
70
}
Line 70... Line 71...
70
 
71
 
71
 
72