0

Hello i am busting my head open to find out how to use mouse listener in squeak Small talk or keyboard listener

Please help me and tell me how is it done ?

2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
  • What is "mouse listener"? Is it a class? What do you want to achieve? E.g. Do you need the mouse position? Do you need events? – User Jun 07 '15 at 10:51
  • 1. how do i get CLICK from a mouse (left / right click) 2. how do i get mouse cordinates ? – 2Big2BeSmall Jun 07 '15 at 18:30

1 Answers1

1

You might want to take a look at the MorphicDraw documentation. It has some examples of reacting to mouse events and moving shapes around on the screen. You can find the code at

MCHttpRepository
location: 'http://smalltalkhub.com/mc/StephanEggermont/MorphicDraw/main'
user: ''
password: ''

At the moment it only loads in Pharo (some missing dependencies for Squeak), but the mouse event handling should be the same.

Stephan Eggermont
  • 15,847
  • 1
  • 38
  • 65