Skip to content

mouseX starts at 0, mouseY starts at 1 #4057

@clankill3r

Description

@clankill3r

This seems to be operating specific. Linux doesn't have this. For windows I don't know.
For mac it does.

mouseX can go to 0
mouseY lowest value is 1

(this is also in processing 2 and probably 1.5.1 but that doesn't start on my mac anymore).

void setup() {
  size(800,  800);  
}

void draw() {
   frame.setTitle(mouseX+" "+mouseY); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions