ASUS Aura Ready Game SDK Developer's Guide
Game Event Example

Send Event Example

gameService.SendEvent(AsusGameSDKService.Scene_snow_Event);


Hotkey Event Example

// Bind hotkey event example. Set ESC key color as red, set 1 key color as green.
AuraKeyColor[] keys = new AuraKeyColor[2];
AuraKeyColor key1 = new AuraKeyColor();
key1.key = KeyCode.Escape;
key1.r = 255;
key1.g = 0;
key1.b = 0;
keys[0] = key1;
AuraKeyColor key2 = new AuraKeyColor();
key2.key = KeyCode.Alpha1;
key2.r = 0;
key2.g = 255;
key2.b = 0;
keys[1] = key2;
gameService.BindHotkeyEvent(keys);
// Update hotkey event example. Set ESC key color as red flashing, set 1 key color as green flashing
gameService.UpdateHotkeyEvent(keys, true);


Health Event Example

// Bind health event example
gameService.BindHealthEvent();
// Update health event example
gameService.UpdateHealthEvent("Medium");


Register Event Example

// Register event example. Register loop circle event with colorful.gif.
gameService.RegisterEvent("circle", "Loop", Application.dataPath + "\\colorful.gif");
// Send customized event example
gameService.SendEvent("circle");
// Delete customized event example
gameService.DeleteEvent("circle");