Re: [cc65] Re: Mouse API

From: Greg King <>
Date: 2006-03-27 21:34:24
From: Jonathan Graham Harston; on Wednesday, March 22, 2006; at 07:00
AM -0500
> Do mouse coordinates start from the top-left like text
> co-ordinates?  I thought they started from the bottom-left, like
> graphics co-ordinates.  They do on all systems I've ever used.  That
> would mean you need something like:
> cursy = maximum_text_y_coord - info.pos.y/8;

In the cc65 world, ALL co-ordinates start at the top-left corner of the
screen -- for text, graphics, and mice.
(0, 0) are the (x, y) and (column, row) numbers of that "home" position.
Usually, the mouse drivers use the same resolution as the graphics drivers.
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Mar 27 21:33:21 2006

This archive was generated by hypermail 2.1.8 : 2006-03-27 21:33:28 CEST