1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_dom_GamepadMonitoring_h_ 8 #define mozilla_dom_GamepadMonitoring_h_ 9 #include "mozilla/dom/GamepadHandle.h" 10 11 namespace mozilla { 12 namespace dom { 13 14 // These two functions are implemented in the platform specific service files 15 // (linux/LinuxGamepad.cpp, cocoa/CocoaGamepad.cpp, etc) 16 void StartGamepadMonitoring(); 17 void StopGamepadMonitoring(); 18 void SetGamepadLightIndicatorColor(const Tainted<GamepadHandle>& aGamepadHandle, 19 const Tainted<uint32_t>& aLightColorIndex, 20 const uint8_t& aRed, const uint8_t& aGreen, 21 const uint8_t& aBlue); 22 23 } // namespace dom 24 } // namespace mozilla 25 26 #endif 27