mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 13:40:14 +00:00
another travis build fix
This commit is contained in:
parent
f1979ac39d
commit
2239cc9f0c
@ -32,17 +32,17 @@ namespace InputCore {
|
|||||||
CoreTiming::ScheduleEvent(frame_ticks - cycles_late, tick_event);
|
CoreTiming::ScheduleEvent(frame_ticks - cycles_late, tick_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputCore::Init() {
|
void Init() {
|
||||||
devices = ParseSettings();
|
devices = ParseSettings();
|
||||||
tick_event = CoreTiming::RegisterEvent("InputCore::tick_event", InputTickCallback);
|
tick_event = CoreTiming::RegisterEvent("InputCore::tick_event", InputTickCallback);
|
||||||
CoreTiming::ScheduleEvent(frame_ticks, tick_event);
|
CoreTiming::ScheduleEvent(frame_ticks, tick_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputCore::Shutdown() {
|
void Shutdown() {
|
||||||
devices.clear();
|
devices.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<shared_ptr<IDevice>> InputCore::ParseSettings() {
|
vector<shared_ptr<IDevice>> ParseSettings() {
|
||||||
vector<shared_ptr<IDevice>> devices;
|
vector<shared_ptr<IDevice>> devices;
|
||||||
vector<Settings::InputDeviceMapping> uniqueMappings; //unique mappings from settings file, used to init devices.
|
vector<Settings::InputDeviceMapping> uniqueMappings; //unique mappings from settings file, used to init devices.
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ namespace InputCore {
|
|||||||
return devices;
|
return devices;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InputCore::CheckIfMappingExists(vector<Settings::InputDeviceMapping> uniqueMapping, Settings::InputDeviceMapping mappingToCheck) {
|
bool CheckIfMappingExists(vector<Settings::InputDeviceMapping> uniqueMapping, Settings::InputDeviceMapping mappingToCheck) {
|
||||||
for (auto& mapping : uniqueMapping) {
|
for (auto& mapping : uniqueMapping) {
|
||||||
if (mapping == mappingToCheck)
|
if (mapping == mappingToCheck)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user