forked from gvalkov/python-evdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.h
More file actions
23 lines (22 loc) · 846 Bytes
/
util.h
File metadata and controls
23 lines (22 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
void print_ff_effect(struct ff_effect* effect) {
fprintf(stderr,
"ff_effect:\n"
" type: %d \n"
" id: %d \n"
" direction: %d\n"
" trigger: (%d, %d)\n"
" replay: (%d, %d)\n",
effect->type, effect->id, effect->direction,
effect->trigger.button, effect->trigger.interval,
effect->replay.length, effect->replay.delay
);
switch (effect->type) {
case FF_CONSTANT:
fprintf(stderr, " constant: (%d, (%d, %d, %d, %d))\n", effect->u.constant.level,
effect->u.constant.envelope.attack_length,
effect->u.constant.envelope.attack_level,
effect->u.constant.envelope.fade_length,
effect->u.constant.envelope.fade_level);
break;
}
}