Abstract
We present a JavaScript library constructed in order for a web application on a smartphone to take actions in response to the user tapping the smartphone body in somewhere other than the display. The library offers six different events in total of tapping (1) top right, (2) bottom right, (3) top left, (4) bottom left corners of the smartphone in the portrait orientation, (5) top right, (6) top left corners in the landscape orientation. A machine learning algorithm is employed to detect and classify those six events according to signals from the six-axis accelerometer built in the smartphone. Adding event listeners that relate each event to its handler function, we can make a web application that reacts to the user events of tapping the smartphone body by hand.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Nakashima, T., Miura, M.: Examining frame tapping recognition for extending input method of tablet computers. IPSJ Interact. 2012, 361–366 (2012)
Kotaki, A., Sasakura, M.: A library for detecting movements of an iPod touch by 3D acceleration. IPSJ SIG Technical report, vol. 2010-HCI-140, no.1 (2010)
Keras. https://keras.io/. Accessed 17 May 2023
GitHub shunsuke0000. https://github.com/shunsuke0000. Accessed 17 May 2023
TensorFlow.js. https://www.tensorflow.org/js. Accessed 17 May 2023
Three.js. https://threejs.org/. Accessed 17 May 2023
cannon-es. https://pmndrs.github.io/cannon-es/. Accessed 17 May 2023
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Takano, S., Niibori, M., Kamada, M. (2023). A JavaScript Library for User Interface by Tapping Smartphone Bodies. In: Barolli, L. (eds) Advances in Networked-based Information Systems. NBiS 2023. Lecture Notes on Data Engineering and Communications Technologies, vol 183. Springer, Cham. https://doi.org/10.1007/978-3-031-40978-3_45
Download citation
DOI: https://doi.org/10.1007/978-3-031-40978-3_45
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-40977-6
Online ISBN: 978-3-031-40978-3
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)