Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
2c0912c0
Commit
2c0912c0
authored
12 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
added ability to click to loadbang and create another bang event
parent
22276108
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/x_misc.c
+10
-0
10 additions, 0 deletions
src/x_misc.c
with
10 additions
and
0 deletions
src/x_misc.c
+
10
−
0
View file @
2c0912c0
...
...
@@ -8,6 +8,7 @@
#include
"m_pd.h"
#include
"s_stuff.h"
#include
"g_canvas.h"
#include
<math.h>
#include
<stdio.h>
#include
<string.h>
...
...
@@ -107,6 +108,13 @@ static void *loadbang_new(void)
return
(
x
);
}
static
void
loadbang_click
(
t_loadbang
*
x
,
t_floatarg
xpos
,
t_floatarg
ypos
,
t_floatarg
shift
,
t_floatarg
ctrl
,
t_floatarg
alt
)
{
outlet_bang
(
x
->
x_obj
.
ob_outlet
);
}
static
void
loadbang_loadbang
(
t_loadbang
*
x
)
{
if
(
!
sys_noloadbang
)
...
...
@@ -119,6 +127,8 @@ static void loadbang_setup(void)
sizeof
(
t_loadbang
),
CLASS_NOINLET
,
0
);
class_addmethod
(
loadbang_class
,
(
t_method
)
loadbang_loadbang
,
gensym
(
"loadbang"
),
0
);
class_addmethod
(
loadbang_class
,
(
t_method
)
loadbang_click
,
gensym
(
"click"
),
A_FLOAT
,
A_FLOAT
,
A_FLOAT
,
A_FLOAT
,
A_FLOAT
,
0
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment