@@ -575,7 +575,7 @@ html.wmsx-bar-auto-hide #wmsx-bar.wmsx-hidden {
575575
576576#wmsx-savestate {
577577 width: 280px;
578- height: 406px ;
578+ height: 403px ;
579579}
580580#wmsx-savestate.wmsx-load {
581581 height: 438px;
@@ -1445,7 +1445,7 @@ input#wmsx-netplay-link-text {
14451445 top: 0; bottom: 0;
14461446 left: 0; right: 0;
14471447 width: 294px;
1448- height: 269px ;
1448+ height: 304px ;
14491449 margin: auto;
14501450 padding: 0 16px;
14511451 color: white;
@@ -1921,6 +1921,26 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
19211921 box-shadow: 0 0 0 1px rgba(0, 0, 0, .8);
19221922}
19231923
1924+ html.wmsx-full-screen.wmsx-touch-active.wmsx-dir-big #wmsx-touch-left .wmsx-touch-dir {
1925+ transform: scale(1.2);
1926+ transform-origin: left center;
1927+ }
1928+ html.wmsx-full-screen.wmsx-touch-active.wmsx-touch-mirror.wmsx-dir-big #wmsx-touch-left .wmsx-touch-dir {
1929+ transform-origin: right center;
1930+ }
1931+
1932+ #wmsx-touch-left .wmsx-touch-button {
1933+ margin-left: 11px;
1934+ }
1935+ html.wmsx-touch-mirror #wmsx-touch-left .wmsx-touch-button {
1936+ margin-left: 47px;
1937+ }
1938+ #wmsx-touch-T_X {
1939+ margin-bottom: var(--touch-left-button-vert-margin);
1940+ }
1941+ #wmsx-touch-T_Y {
1942+ margin-top: var(--touch-left-button-vert-margin);
1943+ }
19241944
19251945@media only screen and (orientation: landscape) { /* Landscape */
19261946 #wmsx-touch-left {
@@ -1933,27 +1953,23 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
19331953 left: calc(-6px - ` + this . TOUCH_CONTROLS_LEFT_WIDTH_BIG + `px);
19341954 --touch-left-button-vert-margin: 20px;
19351955 }
1936-
1937- #wmsx-touch-left .wmsx-touch-button {
1938- margin-left: 11px;
1939- }
1940- #wmsx-touch-T_X {
1941- margin-bottom: var(--touch-left-button-vert-margin);
1942- }
1943- #wmsx-touch-T_Y {
1944- margin-top: var(--touch-left-button-vert-margin);
1956+ html.wmsx-touch-mirror #wmsx-touch-left {
1957+ right: calc(-6px - ` + this . TOUCH_CONTROLS_LEFT_WIDTH + `px);
1958+ left: initial !important;
19451959 }
1946-
1947- html.wmsx-full-screen.wmsx-touch-active.wmsx-dir-big #wmsx-touch-left .wmsx-touch-dir {
1948- transform: scale(1.2);
1949- transform-origin: left center;
1960+ html.wmsx-full-screen.wmsx-touch-active.wmsx-touch-mirror.wmsx-dir-big #wmsx-touch-left {
1961+ right: calc(-6px - ` + this . TOUCH_CONTROLS_LEFT_WIDTH_BIG + `px);
19501962 }
19511963
19521964 #wmsx-touch-right {
19531965 right: calc(5px - ` + this . TOUCH_CONTROLS_RIGHT_WIDTH + `px);
19541966 bottom: 50%;
19551967 transform: translateY(50%);
19561968 }
1969+ html.wmsx-touch-mirror #wmsx-touch-right {
1970+ left: calc(5px - ` + this . TOUCH_CONTROLS_RIGHT_WIDTH + `px);
1971+ right: initial !important;
1972+ }
19571973
19581974 #wmsx-touch-speed {
19591975 position: absolute;
@@ -1963,6 +1979,13 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
19631979 html.wmsx-full-screen.wmsx-touch-active.wmsx-dir-big #wmsx-touch-speed {
19641980 left: -130px;
19651981 }
1982+ html.wmsx-touch-mirror #wmsx-touch-speed {
1983+ right: -106px;
1984+ left: initial !important;
1985+ }
1986+ html.wmsx-full-screen.wmsx-touch-active.wmsx-touch-mirror.wmsx-dir-big #wmsx-touch-speed {
1987+ right: -130px;
1988+ }
19661989
19671990 /* Adjust centered elements leaving space to the touch controls on both sides */
19681991 html.wmsx-full-screen.wmsx-touch-active #wmsx-screen-fs-center {
@@ -1973,6 +1996,13 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
19731996 left: ` + this . TOUCH_CONTROLS_LEFT_WIDTH_BIG + `px;
19741997 }
19751998
1999+ html.wmsx-full-screen.wmsx-touch-active.wmsx-touch-mirror #wmsx-screen-fs-center {
2000+ right: ` + this . TOUCH_CONTROLS_LEFT_WIDTH + `px;
2001+ left: ` + this . TOUCH_CONTROLS_RIGHT_WIDTH + `px;
2002+ }
2003+ html.wmsx-full-screen.wmsx-touch-active.wmsx-touch-mirror.wmsx-dir-big #wmsx-screen-fs-center {
2004+ right: ` + this . TOUCH_CONTROLS_LEFT_WIDTH_BIG + `px;
2005+ }
19762006}
19772007
19782008@media only screen and (orientation: landscape) and (max-height: 511px) { /* Medium/Large Landscape */
@@ -2023,9 +2053,9 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
20232053 left: 2px;
20242054 bottom: 182px;
20252055 }
2026- html.wmsx-full-screen.wmsx- touch-active.wmsx-dir-big #wmsx-touch-left .wmsx-touch-dir {
2027- transform: scale(1.2) ;
2028- transform-origin: left center ;
2056+ html.wmsx-touch-mirror #wmsx-touch-left {
2057+ right: 2px ;
2058+ left: initial !important ;
20292059 }
20302060
20312061 #wmsx-touch-right {
@@ -2034,12 +2064,20 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
20342064 width: 112px;
20352065 height: 224px;
20362066 }
2067+ html.wmsx-touch-mirror #wmsx-touch-right {
2068+ left: 77px;
2069+ right: initial !important;
2070+ }
20372071
20382072 #wmsx-touch-speed {
20392073 position: absolute;
20402074 left: 19px;
20412075 bottom: ` + ( this . BAR_HEIGHT + 10 ) + `px;
20422076 }
2077+ html.wmsx-touch-mirror #wmsx-touch-speed {
2078+ right: 19px;
2079+ left: initial !important;
2080+ }
20432081
20442082 .wmsx-touch-button {
20452083 position: absolute;
@@ -2052,7 +2090,13 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
20522090 #wmsx-touch-T_F { bottom: 0%; right: 100%; }
20532091 #wmsx-touch-T_G { bottom: 0%; right: 0%; }
20542092 #wmsx-touch-T_X { display: none; }
2055- #wmsx-touch-T_Y { left: 4px; bottom: -88px; }
2093+ #wmsx-touch-T_Y { bottom: -88px; }
2094+
2095+ html.wmsx-touch-mirror #wmsx-touch-T_B { right: 100%; }
2096+ html.wmsx-touch-mirror #wmsx-touch-T_C { right: 0%; }
2097+ html.wmsx-touch-mirror #wmsx-touch-T_E { right: 100%; }
2098+ html.wmsx-touch-mirror #wmsx-touch-T_F { right: 0%; }
2099+ html.wmsx-touch-mirror #wmsx-touch-T_G { right: 100%; }
20562100
20572101 html.wmsx-full-screen.wmsx-virtual-keyboard-active #wmsx-touch-left, html.wmsx-full-screen.wmsx-virtual-keyboard-active #wmsx-touch-right {
20582102 display: none;
@@ -2081,11 +2125,13 @@ html.wmsx-full-screen.wmsx-touch-active #wmsx-touch-speed {
20812125 bottom: -74px;
20822126 }
20832127
2084- #wmsx-touch-T_E, #wmsx-touch-T_X {
2128+ #wmsx-touch-T_E, #wmsx-touch-T_Y {
20852129 display: none;
20862130 }
20872131 #wmsx-touch-T_D { bottom: 50%; right: 0%; }
20882132
2133+ html.wmsx-touch-mirror #wmsx-touch-T_D { right: 100%; }
2134+
20892135}` ;
20902136
20912137} ;
0 commit comments