git-svn-id: https://spexeah.com:8443/svn/Asuro@532 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
1 parent
1e78c537aa
commit
2ee011ea3c
11 files changed
+7
-197
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -152,22 +152,23 @@ begin
|
||||
if Packet.y_sign then y32:= y32 OR $FFFFFF00;
|
||||
if x32 <> 0 then begin
|
||||
if x32 > 0 then begin
|
||||
inc(Current.x);
|
||||
inc(Current.x, (Packet.x_movement div 4));
|
||||
end else begin
|
||||
Dec(Current.x);
|
||||
Dec(Current.x, (Packet.x_movement div 4));
|
||||
end;
|
||||
end;
|
||||
if y32 <> 0 then begin
|
||||
if y32 > 0 then begin
|
||||
inc(Current.y);
|
||||
if y32 < 0 then begin
|
||||
inc(Current.y, (Packet.y_movement div 4));
|
||||
end else begin
|
||||
dec(Current.y)
|
||||
dec(Current.y, (Packet.y_movement div 4))
|
||||
end;
|
||||
end;
|
||||
if Current.x < 0 then Current.x:= 0;
|
||||
if Current.y < 0 then Current.y:= 0;
|
||||
if Current.x > 1279 then Current.x:= 1279;
|
||||
if Current.y > 1023 then Current.y:= 1023;
|
||||
DrawCursor;
|
||||
end;
|
||||
{console.writestring('Packet[0]: ');
|
||||
console.writeintln(Mouse_Byte[0]);
|
||||
@@ -176,8 +177,6 @@ begin
|
||||
console.writestring('Packet[2]: ');
|
||||
console.writeintln(Mouse_Byte[2]);}
|
||||
Cycle:= 0;
|
||||
|
||||
DrawCursor;
|
||||
end;
|
||||
pop_trace;
|
||||
end;
|
||||
|
||||
+1
-1
@@ -246,7 +246,7 @@ begin
|
||||
tracer.push_trace('kmain.DEVDRV');
|
||||
console.outputln('KERNEL', 'DEVICE DRIVERS: INIT BEGIN.');
|
||||
keyboard.init(keyboard_layout);
|
||||
mouse.init();
|
||||
//mouse.init();
|
||||
testdriver.init();
|
||||
E1000.init();
|
||||
IDE.init();
|
||||
|
||||
Reference in new issue
Block a user