Fixed a few spelling errors.
This commit is contained in:
@@ -147,7 +147,7 @@ void calc_joystick_state(struct joystick_t* js, float x, float y) {
|
||||
* Then the range from the min to the center and the center to the max
|
||||
* may be different.
|
||||
* Because of this, depending on if the current x or y value is greater
|
||||
* or less than the assoicated axis center value, it needs to be interpolated
|
||||
* or less than the associated axis center value, it needs to be interpolated
|
||||
* between the center and the minimum or maxmimum rather than between
|
||||
* the minimum and maximum.
|
||||
*
|
||||
|
||||
12
src/events.c
12
src/events.c
@@ -73,7 +73,7 @@ static int state_changed(struct wiimote_t* wm);
|
||||
* @param wm An array of pointers to wiimote_t structures.
|
||||
* @param wiimotes The number of wiimote_t structures in the \a wm array.
|
||||
*
|
||||
* @return Returns number of wiimotes that an event has occured on.
|
||||
* @return Returns number of wiimotes that an event has occurred on.
|
||||
*
|
||||
* It is necessary to poll the wiimote devices for events
|
||||
* that occur. If an event occurs on a particular wiimote,
|
||||
@@ -296,10 +296,10 @@ static void clear_dirty_reads(struct wiimote_t* wm) {
|
||||
|
||||
|
||||
/**
|
||||
* @brief Analyze the event that occured on a wiimote.
|
||||
* @brief Analyze the event that occurred on a wiimote.
|
||||
*
|
||||
* @param wm An array of pointers to wiimote_t structures.
|
||||
* @param event The event that occured.
|
||||
* @param event The event that occurred.
|
||||
* @param msg The message specified in the event packet.
|
||||
*
|
||||
* Pass the event to the registered event callback.
|
||||
@@ -636,7 +636,7 @@ static void event_status(struct wiimote_t* wm, byte* msg) {
|
||||
return;
|
||||
|
||||
/*
|
||||
* An event occured.
|
||||
* An event occurred.
|
||||
* This event can be overwritten by a more specific
|
||||
* event type during a handshake or expansion removal.
|
||||
*/
|
||||
@@ -855,7 +855,7 @@ void disable_expansion(struct wiimote_t* wm) {
|
||||
if (!WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP))
|
||||
return;
|
||||
|
||||
/* tell the assoicated module the expansion was removed */
|
||||
/* tell the associated module the expansion was removed */
|
||||
switch (wm->exp.type) {
|
||||
case EXP_NUNCHUK:
|
||||
nunchuk_disconnected(&wm->exp.nunchuk);
|
||||
@@ -973,7 +973,7 @@ static void save_state(struct wiimote_t* wm) {
|
||||
/**
|
||||
* @brief Determine if the current state differs significantly from the previous.
|
||||
* @param wm A pointer to a wiimote_t structure.
|
||||
* @return 1 if a significant change occured, 0 if not.
|
||||
* @return 1 if a significant change occurred, 0 if not.
|
||||
*/
|
||||
static int state_changed(struct wiimote_t* wm) {
|
||||
#define STATE_CHANGED(a, b) if (a != b) return 1
|
||||
|
||||
@@ -204,7 +204,7 @@ int wiiuse_io_read(struct wiimote_t* wm) {
|
||||
ResetEvent(wm->hid_overlap.hEvent);
|
||||
return 0;
|
||||
} else if (r == WAIT_FAILED) {
|
||||
WIIUSE_WARNING("A wait error occured on reading from wiimote %i.", wm->unid);
|
||||
WIIUSE_WARNING("A wait error occurred on reading from wiimote %i.", wm->unid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -795,7 +795,7 @@ void wiiuse_set_bluetooth_stack(struct wiimote_t** wm, int wiimotes, enum win_bt
|
||||
* @param threshold The decimal place that should be considered a significant change.
|
||||
*
|
||||
* If threshold is 0.01, and any angle changes by 0.01 then a significant change
|
||||
* has occured and the event callback will be invoked. If threshold is 1 then
|
||||
* has occurred and the event callback will be invoked. If threshold is 1 then
|
||||
* the angle has to change by a full degree to generate an event.
|
||||
*/
|
||||
void wiiuse_set_orient_threshold(struct wiimote_t* wm, float threshold) {
|
||||
|
||||
@@ -767,7 +767,7 @@ typedef struct wiimote_t {
|
||||
|
||||
WCONST struct wiimote_state_t lstate; /**< last saved state */
|
||||
|
||||
WCONST WIIUSE_EVENT_TYPE event; /**< type of event that occured */
|
||||
WCONST WIIUSE_EVENT_TYPE event; /**< type of event that occurred */
|
||||
WCONST byte event_buf[MAX_PAYLOAD]; /**< event buffer */
|
||||
WCONST byte motion_plus_id[6];
|
||||
} wiimote;
|
||||
|
||||
Reference in New Issue
Block a user