Search code examples
smalltalksqueak

Squeak smalltalk mouse listener or keyboard listener


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 ?


Solution

  • 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.