libvirtualhid 18
Cross-platform C++ library for virtual HID devices.
lvh::GamepadCreationResult Struct Reference

Result returned by gamepad creation. More...

#include <src/include/libvirtualhid/runtime.hpp>

Collaboration diagram for lvh::GamepadCreationResult:
[legend]

Public Member Functions

 operator bool () const
 Check whether creation succeeded and produced a handle.
 

Public Attributes

std::unique_ptr< Gamepadgamepad
 Created gamepad handle when creation succeeds.
 
OperationStatus status
 Creation status.
 

Detailed Description

Result returned by gamepad creation.

Member Function Documentation

◆ operator bool()

lvh::GamepadCreationResult::operator bool ( ) const
inlineexplicit

Check whether creation succeeded and produced a handle.

Returns
true when creation succeeded.

The documentation for this struct was generated from the following file: