LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
controllerButton.hpp
Go to the documentation of this file.
1
/*
2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
*/
6
#pragma once
7
8
#include "
api.h
"
9
#include "
okapi/api/device/button/buttonBase.hpp
"
10
#include "
okapi/impl/device/controllerUtil.hpp
"
11
12
namespace
okapi
{
13
class
ControllerButton
:
public
ButtonBase
{
14
public
:
21
ControllerButton
(
ControllerDigital
ibtn,
bool
iinverted =
false
);
22
30
ControllerButton
(
ControllerId
icontroller,
ControllerDigital
ibtn,
bool
iinverted =
false
);
31
32
protected
:
33
pros::controller_id_e_t
id
;
34
pros::controller_digital_e_t
btn
;
35
36
virtual
bool
currentlyPressed
()
override
;
37
};
38
}
// namespace okapi
api.h
PROS API header provides high-level user functionality.
buttonBase.hpp
okapi::ButtonBase
Definition
buttonBase.hpp:11
okapi::ControllerButton
Definition
controllerButton.hpp:13
okapi::ControllerButton::id
pros::controller_id_e_t id
Definition
controllerButton.hpp:33
okapi::ControllerButton::ControllerButton
ControllerButton(ControllerId icontroller, ControllerDigital ibtn, bool iinverted=false)
A button on a Controller.
okapi::ControllerButton::ControllerButton
ControllerButton(ControllerDigital ibtn, bool iinverted=false)
A button on a Controller.
okapi::ControllerButton::currentlyPressed
virtual bool currentlyPressed() override
okapi::ControllerButton::btn
pros::controller_digital_e_t btn
Definition
controllerButton.hpp:34
controllerUtil.hpp
okapi
Definition
chassisController.hpp:16
okapi::ControllerId
ControllerId
Which controller role this has.
Definition
controllerUtil.hpp:14
okapi::ControllerDigital
ControllerDigital
Various buttons.
Definition
controllerUtil.hpp:32
include
okapi
impl
device
button
controllerButton.hpp
Generated by
1.9.8