#include <stdio.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <time.h>
#include <netinet/in.h>
#include "MobileInterface.h"
#include "DisplayDevice.h"
#include "TextEvent.h"
#include "CommandQueue.h"
#include "Inform.h"
#include "PickList.h"
#include "Animation.h"
#include "VMDApp.h"
#include "math.h"
#include "stdlib.h"
Go to the source code of this file.
Compounds | |
struct | mobilehandle |
Defines | |
#define | CURRENTAPIVERSION 9 |
#define | PACKET_ORIENT 1 |
#define | PACKET_TOUCH 2 |
#define | PACKET_HEARTBEAT 3 |
#define | PACKET_CONNECT 4 |
#define | PACKET_DISCONNECT 5 |
#define | PACKET_BUTTON 6 |
#define | EVENT_NON_TOUCH -1 |
#define | EVENT_TOUCH_DOWN 0 |
#define | EVENT_TOUCH_UP 1 |
#define | EVENT_TOUCH_MOVE 2 |
#define | EVENT_TOUCH_SOMEUP 5 |
#define | EVENT_TOUCH_SOMEDOWN 6 |
#define | EVENT_COMMAND 7 |
#define | SEND_HEARTBEAT 0 |
#define | SEND_ADDCLIENT 1 |
#define | SEND_REMOVECLIENT 2 |
#define | SEND_SETACTIVECLIENT 3 |
#define | SEND_SETMODE 4 |
#define | SEND_MESSAGE 5 |
Functions | |
void | swap4_aligned (void *v, long ndata) |
void * | mobile_listener_create (int port) |
int | getint32 (char *bufptr) |
float | getfloat32 (char *bufptr) |
int | mobile_listener_poll (void *voidhandle, float &tx, float &ty, float &tz, float &rx, float &ry, float &rz, int &padaction, int &upid, int &touchcnt, int *touchid, float *padx, float *pady, int &buttons, int &packtype, JString &incomingIP, JString ¤tNick, int &listenerPort, float &tranScal, float &rotScal, float &zoomScal, JString &commandToSend) |
int | mobile_listener_destroy (void *voidhandle) |
int | send_dgram (const char *host_addr, int port, const unsigned char *buf, int buflen) |
|
Definition at line 55 of file MobileInterface.C. Referenced by Mobile::get_APIsupported, and mobile_listener_poll. |
|
Definition at line 72 of file MobileInterface.C. Referenced by Mobile::check_event, and mobile_listener_poll. |
|
Definition at line 66 of file MobileInterface.C. Referenced by Mobile::check_event, and mobile_listener_poll. |
|
Definition at line 67 of file MobileInterface.C. Referenced by Mobile::check_event. |
|
Definition at line 69 of file MobileInterface.C. Referenced by Mobile::check_event. |
|
Definition at line 71 of file MobileInterface.C. Referenced by Mobile::check_event. |
|
Definition at line 70 of file MobileInterface.C. Referenced by Mobile::check_event. |
|
Definition at line 68 of file MobileInterface.C. Referenced by Mobile::check_event. |
|
Definition at line 63 of file MobileInterface.C. |
|
Definition at line 61 of file MobileInterface.C. |
|
Definition at line 62 of file MobileInterface.C. |
|
Definition at line 60 of file MobileInterface.C. Referenced by mobile_listener_poll. |
|
Definition at line 58 of file MobileInterface.C. Referenced by mobile_listener_poll. |
|
Definition at line 59 of file MobileInterface.C. Referenced by mobile_listener_poll. |
|
Definition at line 76 of file MobileInterface.C. Referenced by Mobile::addNewClient. |
|
Definition at line 75 of file MobileInterface.C. |
|
Definition at line 80 of file MobileInterface.C. |
|
Definition at line 77 of file MobileInterface.C. Referenced by Mobile::removeClient. |
|
Definition at line 78 of file MobileInterface.C. Referenced by Mobile::set_activeClient. |
|
Definition at line 79 of file MobileInterface.C. Referenced by Mobile::move_mode. |
|
Definition at line 247 of file MobileInterface.C. Referenced by mobile_listener_poll. |
|
Definition at line 241 of file MobileInterface.C. Referenced by mobile_listener_poll. |
|
Definition at line 198 of file MobileInterface.C. References NULL, mobilehandle::sockaddr, and mobilehandle::sockfd. Referenced by Mobile::move_mode, and Mobile::network_port. |
|
Definition at line 529 of file MobileInterface.C. References mobilehandle::sockfd. Referenced by Mobile::move_mode, Mobile::network_port, and Mobile::~Mobile. |
|
|
Definition at line 600 of file MobileInterface.C. |
|
Definition at line 85 of file MobileInterface.C. References data. Referenced by imd_recv_handshake, and mobile_listener_poll. |