change start key
This commit is contained in:
parent
80cd7ece5e
commit
343c2c4320
@ -4,8 +4,8 @@ This only works with minetest 5.5
|
||||
|
||||
This mod is divided into two parts.
|
||||
The first part, in lua, runs on the server, creates a port to receive files from users, in case, ogg files
|
||||
The second is a C++ program to record the voice and send to minetest. You start the recording hiting TAB key.
|
||||
To stop the record just type TAB again., The record will stop automatically at 10 seconds.
|
||||
The second is a C++ program to record the voice and send to minetest. You start the recording hiting ALT key.
|
||||
To stop the record just type ALT again., The record will stop automatically at 10 seconds.
|
||||
|
||||
Then when the server receives the audio file, it will play it
|
||||
|
||||
|
@ -191,8 +191,8 @@ int main(int argc, char **argv) {
|
||||
}*/
|
||||
|
||||
/* Record some audio. -------------------------------------------- */
|
||||
if( ks == 65289 && capture_key) { //--- tab key
|
||||
printf ("Tab pressed!\n");
|
||||
if( ks == 65513 && capture_key) { //--- tab key
|
||||
printf ("Alt pressed!\n");
|
||||
if( is_recording == false ) { //isn't recording
|
||||
if(last_time >= 0.5) {
|
||||
last_time = 0.0;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user