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

Result returned by gamepad adapter creation. More...

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

Collaboration diagram for lvh::GamepadAdapterCreationResult:
[legend]

Public Member Functions

 operator bool () const
 Check whether creation succeeded and produced an adapter.
 

Public Attributes

std::unique_ptr< GamepadStateAdapteradapter
 Created adapter when creation succeeds.
 
OperationStatus status
 Creation status.
 

Detailed Description

Result returned by gamepad adapter creation.

Member Function Documentation

◆ operator bool()

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

Check whether creation succeeded and produced an adapter.

Returns
true when creation succeeded.

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