arch/win32/joyhh.c File Reference

#include <windows.h>
#include <mmsystem.h>
#include <stdlib.h>
#include <stdio.h>
#include "types.h"
#include "joy.h"
#include "timer.h"
#include "args.h"

Classes

struct  Button_info
struct  Joy_info

Defines

#define _WIN32_OS
#define my_hwnd   g_hWnd

Functions

void joy_get_cal_vals (int *axis_min, int *axis_center, int *axis_max)
void joy_set_cal_vals (int *axis_min, int *axis_center, int *axis_max)
ubyte joy_get_present_mask ()
void joy_set_timer_rate (int max_value)
int joy_get_timer_rate ()
void joy_flush ()
LRESULT joy_handler32 (HWND hWnd, UINT joymsg, UINT wParam, LPARAM lParam)
ubyte joy_read_raw_buttons ()
ubyte joystick_read_raw_axis (ubyte mask, int *axis)
int hh_average (int val1, int val2)
int joy_init (int joyid)
void joy_close ()
void joy_set_ul ()
void joy_set_lr ()
void joy_set_cen ()
void joy_set_cen_fake (int channel)
int joy_get_scaled_reading (int raw, int axn)
void joy_get_pos (int *x, int *y)
ubyte joy_read_stick (ubyte masks, int *axis)
int joy_get_btns ()
void joy_get_btn_down_cnt (int *btn0, int *btn1)
int joy_get_button_state (int btn)
int joy_get_button_up_cnt (int btn)
int joy_get_button_down_cnt (int btn)
fix joy_get_button_down_time (int btn)
void joy_get_btn_up_cnt (int *btn0, int *btn1)
void joy_set_btn_values (int btn, int state, fix timedown, int downcount, int upcount)
void joy_poll ()

Variables

HWND g_hWnd
char joy_installed = 0
char joy_present = 0
Joy_info joystick
int joy_deadzone = 0

Define Documentation

#define _WIN32_OS
 

#define my_hwnd   g_hWnd
 


Function Documentation

int hh_average int  val1,
int  val2
 

void joy_close  ) 
 

void joy_flush  ) 
 

void joy_get_btn_down_cnt int *  btn0,
int *  btn1
 

void joy_get_btn_up_cnt int *  btn0,
int *  btn1
 

int joy_get_btns  ) 
 

int joy_get_button_down_cnt int  btn  ) 
 

fix joy_get_button_down_time int  btn  ) 
 

int joy_get_button_state int  btn  ) 
 

int joy_get_button_up_cnt int  btn  ) 
 

void joy_get_cal_vals int *  axis_min,
int *  axis_center,
int *  axis_max
 

void joy_get_pos int *  x,
int *  y
 

ubyte joy_get_present_mask  ) 
 

int joy_get_scaled_reading int  raw,
int  axn
 

int joy_get_timer_rate  ) 
 

LRESULT joy_handler32 HWND  hWnd,
UINT  joymsg,
UINT  wParam,
LPARAM  lParam
 

int joy_init int  joyid  ) 
 

void joy_poll  ) 
 

ubyte joy_read_raw_buttons  ) 
 

ubyte joy_read_stick ubyte  masks,
int *  axis
 

void joy_set_btn_values int  btn,
int  state,
fix  timedown,
int  downcount,
int  upcount
 

void joy_set_cal_vals int *  axis_min,
int *  axis_center,
int *  axis_max
 

void joy_set_cen  ) 
 

void joy_set_cen_fake int  channel  ) 
 

void joy_set_lr  ) 
 

void joy_set_timer_rate int  max_value  ) 
 

void joy_set_ul  ) 
 

ubyte joystick_read_raw_axis ubyte  mask,
int *  axis
 


Variable Documentation

HWND g_hWnd
 

int joy_deadzone = 0
 

char joy_installed = 0
 

char joy_present = 0
 

Joy_info joystick
 


Generated on Mon Aug 28 20:55:30 2006 for D1X-Rebirth by  doxygen 1.4.6