mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/gamepad: refactoring
This commit is contained in:
parent
77f32bd088
commit
58692f6d85
@ -20,11 +20,6 @@ package gamepad
|
||||
// #cgo darwin LDFLAGS: -Wl,-undefined,dynamic_lookup
|
||||
//
|
||||
// #include "gamepad_nintendosdk.h"
|
||||
//
|
||||
// void ebitengine_UpdateGamepads();
|
||||
// int ebitengine_GetGamepadCount();
|
||||
// void ebitengine_GetGamepads(struct Gamepad* gamepads);
|
||||
// void ebitengine_VibrateGamepad(int id, double durationInSeconds, double strongMagnitude, double weakMagnitude);
|
||||
import "C"
|
||||
|
||||
import (
|
||||
|
@ -23,3 +23,17 @@ struct Gamepad {
|
||||
float button_values[32];
|
||||
float axis_values[16];
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void ebitengine_UpdateGamepads();
|
||||
int ebitengine_GetGamepadCount();
|
||||
void ebitengine_GetGamepads(struct Gamepad *gamepads);
|
||||
void ebitengine_VibrateGamepad(int id, double durationInSeconds,
|
||||
double strongMagnitude, double weakMagnitude);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user