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

trunk/web/commands.html
r25375r25376
1<a href="javascript:executeCommands('togglepause');" data-role="button">Toggle Pause</a>
12<a href="javascript:executeCommands('softreset');" data-role="button">Soft reset</a>
23<a href="javascript:executeCommands('hardreset');" data-role="button">Hard reset</a>
34<a href="javascript:executeCommands('exit');" data-role="button">Exit</a>
trunk/web/index.html
r25375r25376
123123<!-- Home -->
124124<div data-role="page" id="page1">
125125    <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">
128128        </div>
129129        <a data-role="button" href="#page1" data-icon="home" data-iconpos="left" class="ui-btn-right">Home </a>
130130        <div data-role="navbar" data-iconpos="top">
trunk/src/emu/webengine.c
r25375r25376
182182      {
183183         m_machine->schedule_exit();
184184      }
185      else if(!strcmp(cmd_name,"togglepause"))
186      {
187         if (m_machine->paused())
188            m_machine->resume();
189      else
190            m_machine->pause();
191      }
185192
186193      // Send HTTP reply to the client
187194      mg_printf(conn,

Previous 199869 Revisions Next


© 1997-2024 The MAME Team