Definition at line 36 of file OOJoystickManager.m.
◆ setFunctionForAxis:function:stick:
- (void) setFunctionForAxis: |
|
(int) | axis |
function: |
|
(int) | function |
stick: |
|
(int) | stickNum |
Extends class OOJoystickManager.
Definition at line 33 of file OOJoystickManager.m.
412 function:(
int)function
414{
416
417 int16_t axisvalue = [self getAxisWithStick:stickNum axis:axis];
418 [self unsetAxisFunction:function];
419 axismap[stickNum][axis] = function;
420
421
422
423
425 {
426 axstate[function] = (float)(65536 - (axisvalue + 32768)) / 65536;
427 }
428 else
429 {
431 }
432}
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
◆ setFunctionForButton:function:stick:
- (void) setFunctionForButton: |
|
(int) | button |
function: |
|
(int) | function |
stick: |
|
(int) | stickNum |
Extends class OOJoystickManager.
Definition at line 33 of file OOJoystickManager.m.
436 function:(
int)function
438{
440
441 int i, j;
443 {
445 {
446 if (buttonmap[j][i] == function)
447 {
449 break;
450 }
451 }
452 }
453 buttonmap[stickNum][button] = function;
454}
The documentation for this category was generated from the following file: