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
(453)
Sound Design
(144)
Capytalk & Smalltalk
(297)
Controllers, OSC & MIDI
(204)
Hardware & Interfaces
(142)
General
(115)
Most popular tags
vcs
multigrid
osc
midi
capytalk
smalltalk
timeline
interface
tool
kyma7
wacom
kyma-control
kyma
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,355
questions
1,476
answers
3,290
comments
261
users
mousePressed
+1
vote
297
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.
...