Login
Register
First time here? Check out the
FAQ
!
x
Kyma Q&A
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
FAQ
kyma: sound design inspiration
Tap into the collective expertise of the Kyma community!
All categories
Using Kyma
(457)
Sound Design
(146)
Capytalk & Smalltalk
(299)
Controllers, OSC & MIDI
(207)
Hardware & Interfaces
(147)
General
(116)
Most popular tags
vcs
multigrid
midi
osc
capytalk
smalltalk
timeline
interface
kyma7
tool
kyma
wacom
kyma-control
arrays
script
bpm
delay
memorywriter
Community
Recent Activity
Insights Magazine
Video Tutorials
Community Library
Kyma 7 Forum
Questions & Answers
Kyma Symposium
Kyma Users Sound & Video
1,372
questions
1,489
answers
3,328
comments
265
users
mousePressed
+1
vote
365
views
hello everybody,
How do I get the pressure of the Left Button of the Mouse into a View/GraphicsContext in a Tool?
I would like to get the the 'controller sensor cursorPoint' only when the button is pressed.
thanks.
d
mousepressed
leftbutton
tool
asked
Sep 8, 2020
in
Capytalk & Smalltalk
by
domenico-cipriani
(Master)
(
3,110
points)
edited
Sep 9, 2020
by
domenico-cipriani
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
with a little bit of philological work I found a solution that work but I don't know if it is the better solution :)
so
| myposition mousePressed myView |
x := 0@0.
myView := View new
mousePressed := MyView controller sensor redButtonPressed.
(mousePressed) ifTrue: [x := MyView controller sensor cursorPoint] ifFalse: []
answered
Sep 9, 2020
by
domenico-cipriani
(Master)
(
3,110
points)
Please
log in
or
register
to add a comment.
...