xbmc
|
Handles IR data. More...
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include "definitions.h"
#include "wiiuse_internal.h"
#include "ir.h"
Functions | |
void | wiiuse_set_ir (struct wiimote_t *wm, int status) |
Set if the wiimote should track IR targets. More... | |
void | wiiuse_set_ir_vres (struct wiimote_t *wm, unsigned int x, unsigned int y) |
Set the virtual screen resolution for IR tracking. More... | |
void | wiiuse_set_ir_position (struct wiimote_t *wm, enum ir_position_t pos) |
Set the XY position for the IR cursor. More... | |
void | wiiuse_set_aspect_ratio (struct wiimote_t *wm, enum aspect_t aspect) |
Set the aspect ratio of the TV/monitor. More... | |
void | wiiuse_set_ir_sensitivity (struct wiimote_t *wm, int level) |
Set the IR sensitivity. More... | |
void | calculate_basic_ir (struct wiimote_t *wm, byte *data) |
Calculate the data from the IR spots. More... | |
void | calculate_extended_ir (struct wiimote_t *wm, byte *data) |
Calculate the data from the IR spots. More... | |
float | calc_yaw (struct ir_t *ir) |
Calculate yaw given the IR data. More... | |
Handles IR data.
float calc_yaw | ( | struct ir_t * | ir | ) |
Calculate yaw given the IR data.
ir | IR data structure. |
void calculate_basic_ir | ( | struct wiimote_t * | wm, |
byte * | data | ||
) |
void calculate_extended_ir | ( | struct wiimote_t * | wm, |
byte * | data | ||
) |
void wiiuse_set_ir | ( | struct wiimote_t * | wm, |
int | status | ||
) |
void wiiuse_set_ir_position | ( | struct wiimote_t * | wm, |
enum ir_position_t | pos | ||
) |
void wiiuse_set_ir_sensitivity | ( | struct wiimote_t * | wm, |
int | level | ||
) |