forked from enlightenment/terminology
make use of eo audio and multisense in terminology.... bell..
keyboard... muhahahaha!
This commit is contained in:
parent
5549fc05a0
commit
3e0435e4d1
|
@ -6,7 +6,7 @@ EDJE_CC = @edje_cc@
|
|||
EDJE_FLAGS_VERBOSE_ =
|
||||
EDJE_FLAGS_VERBOSE_0 =
|
||||
EDJE_FLAGS_VERBOSE_1 = -v
|
||||
EDJE_FLAGS = $(EDJE_FLAGS_VERBOSE_$(V)) -id $(top_srcdir)/data/themes/images -fd $(top_srcdir)/data/fonts
|
||||
EDJE_FLAGS = $(EDJE_FLAGS_VERBOSE_$(V)) -id $(top_srcdir)/data/themes/images -fd $(top_srcdir)/data/fonts -sd $(top_srcdir)/data/themes/sounds
|
||||
|
||||
filesdir = $(pkgdatadir)/themes
|
||||
files_DATA = \
|
||||
|
|
|
@ -95,6 +95,11 @@ collections {
|
|||
image: "pm_fill.png" COMP;
|
||||
image: "cr_glow.png" COMP;
|
||||
}
|
||||
sounds {
|
||||
sample { name: "bell" LOSSY 64;
|
||||
source: "bell.wav";
|
||||
}
|
||||
}
|
||||
parts {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// background handling
|
||||
|
@ -603,6 +608,10 @@ collections {
|
|||
map.rotation.z: 720.0;
|
||||
}
|
||||
}
|
||||
program {
|
||||
signal: "bell"; source: "terminology";
|
||||
action: PLAY_SAMPLE "bell" 1.0;
|
||||
}
|
||||
program {
|
||||
signal: "bell"; source: "terminology";
|
||||
action: STATE_SET "default" 0.0;
|
||||
|
@ -2353,6 +2362,23 @@ target: "4.bottom"
|
|||
image: "cr_pulse.png" COMP;
|
||||
image: "cr_glow.png" COMP;
|
||||
}
|
||||
sounds {
|
||||
sample { name: "key-tap1" LOSSY 64;
|
||||
source: "kbd-tap.wav";
|
||||
}
|
||||
sample { name: "key-tap2" LOSSY 64;
|
||||
source: "kbd-tap2.wav";
|
||||
}
|
||||
sample { name: "key-tap3" LOSSY 64;
|
||||
source: "kbd-tap3.wav";
|
||||
}
|
||||
sample { name: "key-tap4" LOSSY 64;
|
||||
source: "kbd-tap4.wav";
|
||||
}
|
||||
sample { name: "key-tap5" LOSSY 64;
|
||||
source: "kbd-tap5.wav";
|
||||
}
|
||||
}
|
||||
parts {
|
||||
part { name: "key";
|
||||
mouse_events: 0;
|
||||
|
@ -2496,6 +2522,29 @@ target: "4.bottom"
|
|||
target: "glow";
|
||||
target: "outline";
|
||||
}
|
||||
program {
|
||||
signal: "key,down"; source: "terminology";
|
||||
script {
|
||||
new buf[32];
|
||||
snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
|
||||
run_program(get_program_id(buf));
|
||||
}
|
||||
}
|
||||
program { name: "key-down1";
|
||||
action: PLAY_SAMPLE "key-tap1" 1.0;
|
||||
}
|
||||
program { name: "key-down2";
|
||||
action: PLAY_SAMPLE "key-tap2" 1.0;
|
||||
}
|
||||
program { name: "key-down3";
|
||||
action: PLAY_SAMPLE "key-tap3" 1.0;
|
||||
}
|
||||
program { name: "key-down4";
|
||||
action: PLAY_SAMPLE "key-tap4" 1.0;
|
||||
}
|
||||
program { name: "key-down5";
|
||||
action: PLAY_SAMPLE "key-tap5" 1.0;
|
||||
}
|
||||
program {
|
||||
signal: "key,down"; source: "terminology";
|
||||
action: STATE_SET "default" 0.0;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue