The virtual keyboard plugin can be instantiated directly.
Detailed description of interface(keyboard.d.ts).
It relies on TCGSDK. We recommend you use it in the callback function onConnectSuccess in TCGSDK.init.
-
import keyboard plugin
import Keyboard from 'plugin/keyboard/keyboard';
or use script tag
<script type="text/javascript" src="plugin/keyboard/keyboard.js"></script>
-
Instantiating the keyboard
const k = new Keyboard();
or use global variables
const k = new CloudGamingPlugin.keyboard();
-
Calling the keyboard method
k.show(); k.hide(); k.destroy();
If you have any questions or needs, please feel free to contact ranpeng.