Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
1bd8e06b
Commit
1bd8e06b
authored
Jan 30, 2019
by
IOhannes m zmölnig
Browse files
prepare interface for user gesture handling
parent
3b27c9ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Output/gemsdl2window.cpp
View file @
1bd8e06b
...
...
@@ -685,6 +685,10 @@ void gemsdl2window :: opacityMess(float opacity)
if
(
m_window
)
SDL_SetWindowOpacity
(
m_window
,
m_opacity
);
}
void
gemsdl2window
::
userGestureMess
(
t_symbol
*
,
int
argc
,
t_atom
*
argv
)
{
error
(
"user gesture recording/saving/restoring not implemented"
);
}
/////////////////////////////////////////////////////////
// createMess
...
...
@@ -805,4 +809,6 @@ void gemsdl2window :: obj_setupCallback(t_class *classPtr)
CPPEXTERN_MSG1
(
classPtr
,
"grabmouse"
,
grabmouseMess
,
bool
);
CPPEXTERN_MSG1
(
classPtr
,
"relativemouse"
,
relativemouseMess
,
bool
);
CPPEXTERN_MSG1
(
classPtr
,
"opacity"
,
opacityMess
,
float
);
CPPEXTERN_MSG
(
classPtr
,
"usergesture"
,
userGestureMess
);
}
src/Output/gemsdl2window.h
View file @
1bd8e06b
...
...
@@ -89,6 +89,7 @@ private:
virtual
void
grabmouseMess
(
bool
on
);
virtual
void
relativemouseMess
(
bool
on
);
virtual
void
opacityMess
(
float
);
virtual
void
userGestureMess
(
t_symbol
*
s
,
int
,
t_atom
*
);
/* creation/destruction */
virtual
bool
create
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment