rework android-rmt display, add a few buttons
[goodguy/history.git] / cinelerra-5.0 / cinelerra / androidcontrol.C
index ac2102f5b82463469ebd3454b4066715ed163f08..784dea2313a5732dc0e74953c037a22f729552a7 100644 (file)
@@ -98,6 +98,7 @@ void AndroidControl::run()
                if( msg_len <= 0 ) continue;
                if( is_msg("stop") ) press(KPSTOP);
                else if( is_msg("play") ) press(KPPLAY);
+               else if( is_msg("rplay") ) press(KPREV);
                else if( is_msg("pause") ) press(' ');
                        else if( is_msg("fast_lt") ) press(KPBACK);
                else if( is_msg("media_up") ) press(UP);
@@ -127,6 +128,9 @@ void AndroidControl::run()
                else if( is_msg("suspend") ) {
                        system("sync; sleep 1; pm-suspend");
                }
+               else if( is_msg("power") ) {
+                       system("sync; sleep 1; poweroff");
+               }
                else {
                        printf("AndroidControl::run: unkn msg: %s\n", msg);
                        sleep(1);