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
(395)
Sound Design
(131)
Capytalk & Smalltalk
(275)
Controllers, OSC & MIDI
(178)
Hardware & Interfaces
(118)
General
(101)
Most popular tags
multigrid
vcs
midi
osc
smalltalk
capytalk
interface
tool
wacom
timeline
kyma
arrays
script
kyma-control
bpm
kyma7
memorywriter
delay
array
vcs-preset
encapsulating
spectral-analysis
sample
Community
Recent Activity
Insights Magazine
Video Tutorials
Community Library
Kyma 7 Forum
Questions & Answers
Kyma Symposium
Kyma Users Sound & Video
1,198
questions
1,320
answers
2,922
comments
225
users
mousePressed
+1
vote
74
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
(Adept)
(
2,830
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
(Adept)
(
2,830
points)
Please
log in
or
register
to add a comment.
...