tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GamepadMonitoring.h (1005B)


      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::dom {
     12 
     13 // These two functions are implemented in the platform specific service files
     14 // (linux/LinuxGamepad.cpp, cocoa/CocoaGamepad.cpp, etc)
     15 void StartGamepadMonitoring();
     16 void StopGamepadMonitoring();
     17 void SetGamepadLightIndicatorColor(const Tainted<GamepadHandle>& aGamepadHandle,
     18                                   const Tainted<uint32_t>& aLightColorIndex,
     19                                   const uint8_t& aRed, const uint8_t& aGreen,
     20                                   const uint8_t& aBlue);
     21 
     22 }  // namespace mozilla::dom
     23 
     24 #endif