diff --git a/pom.xml b/pom.xml index f9e70c3..7392df2 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 17 UTF-8 UTF-8 - 1.2.7 + 999-SNAPSHOT quarkus-bom io.quarkus 2.16.4.Final diff --git a/src/main/webui/src/components/GameController/Generator.jsx b/src/main/webui/src/components/GameController/Generator.jsx index 75ac5a7..00278f8 100644 --- a/src/main/webui/src/components/GameController/Generator.jsx +++ b/src/main/webui/src/components/GameController/Generator.jsx @@ -1,7 +1,7 @@ import React, { useEffect } from 'react'; import styled from 'styled-components'; import { - TAP_POWER, ENABLE_BLOWING, ENABLE_TAPPING, ENABLE_SWIPING, + TAP_POWER, ENABLE_BLOWING, ENABLE_TAPPING, ENABLE_SWIPING, IS_TOUCH_DEVICE, } from '../../Config'; import { powerApi, sensors } from '../../api'; import Turbine from "./Turbine"; @@ -95,10 +95,17 @@ function Generator(props) { } }; + const onClick = (e) => { + // Clicking + if (!IS_TOUCH_DEVICE && ENABLE_TAPPING) { + props.generatePower(TAP_POWER, true); + } + }; + return ( <> - +