| Previous | 199869 Revisions | Next |
| r25376 Friday 20th September, 2013 at 03:20:28 UTC by R. Belmont |
|---|
| web: Fix rendering issues on WebKit-based phones in portrait mode, added pause/unpause toggle. [Firehawke] |
| [src/emu] | webengine.c |
| [web] | commands.html index.html |
| r25375 | r25376 | |
|---|---|---|
| 1 | <a href="javascript:executeCommands('togglepause');" data-role="button">Toggle Pause</a> | |
| 1 | 2 | <a href="javascript:executeCommands('softreset');" data-role="button">Soft reset</a> |
| 2 | 3 | <a href="javascript:executeCommands('hardreset');" data-role="button">Hard reset</a> |
| 3 | 4 | <a href="javascript:executeCommands('exit');" data-role="button">Exit</a> |
| r25375 | r25376 | |
|---|---|---|
| 123 | 123 | <!-- Home --> |
| 124 | 124 | <div data-role="page" id="page1"> |
| 125 | 125 | <div data-theme="a" data-role="header"> |
| 126 | <div style="width: 320px; height: 120px; position: relative;"> | |
| 127 | <img src="images/logo-mame-small.png" alt="image" style="position: absolute; top: 50%; left: 50%; margin-left: 0px; margin-top: -50px"> | |
| 126 | <div style="width: 100%; height: 120px; position: relative;"> | |
| 127 | <img src="images/logo-mame-small.png" alt="image" style="position: absolute; top: 50%; left: 50%; margin-left: -158px; margin-top: -50px"> | |
| 128 | 128 | </div> |
| 129 | 129 | <a data-role="button" href="#page1" data-icon="home" data-iconpos="left" class="ui-btn-right">Home </a> |
| 130 | 130 | <div data-role="navbar" data-iconpos="top"> |
| r25375 | r25376 | |
|---|---|---|
| 182 | 182 | { |
| 183 | 183 | m_machine->schedule_exit(); |
| 184 | 184 | } |
| 185 | else if(!strcmp(cmd_name,"togglepause")) | |
| 186 | { | |
| 187 | if (m_machine->paused()) | |
| 188 | m_machine->resume(); | |
| 189 | else | |
| 190 | m_machine->pause(); | |
| 191 | } | |
| 185 | 192 | |
| 186 | 193 | // Send HTTP reply to the client |
| 187 | 194 | mg_printf(conn, |
| Previous | 199869 Revisions | Next |