Post Reply 
Graphic cursor problem
01-13-2021, 05:52 AM
Post: #6
RE: Graphic cursor problem
Dear Mr. Han,
I hereby add the part of the mouse code as it is at the moment, so that you can see what possibly needs to be corrected. All variables used are declared at the beginning of the program, but this part is not included in this code snippet. I hope this helps you to solve this problem. Sincerely, Karel.

Code:

  . . .
  input:=WAIT(−1);
  CASE
    IF TYPE(input)==6 THEN
      CASE
        IF input(1)==#0h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#1h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#2h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#3h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#4h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#5h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#6h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
        IF input(1)==#7h THEN
        cx:=B→R(input(2));
        cy:=B→R(input(3));
        END;
      END;
    END;
  END;
  . . .
[/code]

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Graphic cursor problem - cahlucas - 01-09-2021, 09:20 PM
RE: Graphic cursor problem - Han - 01-10-2021, 09:45 PM
RE: Graphic cursor problem - cahlucas - 01-12-2021, 05:39 AM
RE: Graphic cursor problem - Han - 01-13-2021, 02:27 AM
RE: Graphic cursor problem - C.Ret - 01-12-2021, 12:13 PM
RE: Graphic cursor problem - cahlucas - 01-13-2021 05:52 AM



User(s) browsing this thread: 1 Guest(s)