mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
added some CAP_ guards so Android compiles
This commit is contained in:
parent
6f81743488
commit
9bc978ce16
@ -1201,6 +1201,7 @@ EX namespace dialog {
|
|||||||
rot_but(0, 1, "rotate in XY", 'z');
|
rot_but(0, 1, "rotate in XY", 'z');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !ISMOBILE
|
||||||
addBoolItem("mouse control", dialogflags & sm::MOUSEAIM, 'm');
|
addBoolItem("mouse control", dialogflags & sm::MOUSEAIM, 'm');
|
||||||
dialog::add_action([this] { dialogflags ^= sm::MOUSEAIM; });
|
dialog::add_action([this] { dialogflags ^= sm::MOUSEAIM; });
|
||||||
if(dialogflags & sm::MOUSEAIM) {
|
if(dialogflags & sm::MOUSEAIM) {
|
||||||
@ -1208,6 +1209,7 @@ EX namespace dialog {
|
|||||||
*edit_matrix = cspin(1, 2, mouseaim_y) * *edit_matrix;
|
*edit_matrix = cspin(1, 2, mouseaim_y) * *edit_matrix;
|
||||||
mouseaim_x = mouseaim_y = 0;
|
mouseaim_x = mouseaim_y = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static string formula;
|
static string formula;
|
||||||
formula = "?";
|
formula = "?";
|
||||||
|
@ -1389,7 +1389,9 @@ geom3::eSpatialEmbedding embed_by_name(string ss) {
|
|||||||
return seNone;
|
return seNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_COMMANDLINE
|
||||||
auto ah_embed = arg::add2("-seo", [] { arg::shift(); invoke_embed(embed_by_name(arg::args())); })
|
auto ah_embed = arg::add2("-seo", [] { arg::shift(); invoke_embed(embed_by_name(arg::args())); })
|
||||||
+ arg::add2("-never-invert", [] { never_invert = true; });
|
+ arg::add2("-never-invert", [] { never_invert = true; });
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user