2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2015-04-23 22:05:29 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_GamepadMonitoring_h_
|
|
|
|
#define mozilla_dom_GamepadMonitoring_h_
|
2020-12-02 23:06:05 +00:00
|
|
|
#include "mozilla/dom/GamepadHandle.h"
|
2015-04-23 22:05:29 +00:00
|
|
|
|
2022-05-09 20:41:07 +00:00
|
|
|
namespace mozilla::dom {
|
2015-04-23 22:05:29 +00:00
|
|
|
|
|
|
|
// These two functions are implemented in the platform specific service files
|
|
|
|
// (linux/LinuxGamepad.cpp, cocoa/CocoaGamepad.cpp, etc)
|
|
|
|
void StartGamepadMonitoring();
|
|
|
|
void StopGamepadMonitoring();
|
2020-12-02 23:06:05 +00:00
|
|
|
void SetGamepadLightIndicatorColor(const Tainted<GamepadHandle>& aGamepadHandle,
|
2020-12-01 19:56:00 +00:00
|
|
|
const Tainted<uint32_t>& aLightColorIndex,
|
2021-03-23 18:26:30 +00:00
|
|
|
const uint8_t& aRed, const uint8_t& aGreen,
|
|
|
|
const uint8_t& aBlue);
|
2015-04-23 22:05:29 +00:00
|
|
|
|
2022-05-09 20:41:07 +00:00
|
|
|
} // namespace mozilla::dom
|
2015-04-23 22:05:29 +00:00
|
|
|
|
|
|
|
#endif
|