Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
using UnityEngine; | |
using System.Collections; | |
public class CheckInput : MonoBehaviour { | |
void Update(){ | |
if ( Input.GetKeyDown ( KeyCode.JoystickButton0 )){Debug.Log("JoystickButton0");} | |
if ( Input.GetKeyDown ( KeyCode.JoystickButton1 )){Debug.Log("JoystickButton1");} | |
if ( Input.GetKeyDown ( KeyCode.JoystickButton2 )){Debug.Log("JoystickButton2");} | |
if ( Input.GetKeyDown ( KeyCode.JoystickButton3 )){Debug.Log("JoystickButton3");} |
/** | |
* VirtualUsbKeyboard | |
* | |
* Enumerates itself as a HID (Human Interface Device) to a host | |
* computer using a USB shield. The Arduino then appears to the host to | |
* be a USB keyboard and keypress events can be sent on demand. | |
* | |
* This example watches the state of 6 push buttons and when a button | |
* is pressed it sends a matching keypress event to the host. | |
* |