Add individual air keyboard buttons
This commit is contained in:
parent
f4fda04f6b
commit
7f4b231c97
14
aimeio_brokenithm/meson.build
Normal file
14
aimeio_brokenithm/meson.build
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
shared_library(
|
||||||
|
'aime_brokenithm',
|
||||||
|
name_prefix : '',
|
||||||
|
vs_module_defs : 'aimeio.def',
|
||||||
|
include_directories : inc,
|
||||||
|
implicit_include_directories : false,
|
||||||
|
link_with : [
|
||||||
|
aimeio_lib,
|
||||||
|
],
|
||||||
|
|
||||||
|
sources : [
|
||||||
|
'aimeio.c',
|
||||||
|
],
|
||||||
|
)
|
@ -102,19 +102,31 @@ void chuni_io_jvs_poll(uint8_t *opbtn, uint8_t *beams)
|
|||||||
*opbtn |= CHUNI_IO_OPBTN_SERVICE; /* Service */
|
*opbtn |= CHUNI_IO_OPBTN_SERVICE; /* Service */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetAsyncKeyState(chuni_io_cfg.vk_ir_emu)) {
|
if (chuni_io_cfg.vk_ir_emu) {
|
||||||
if (chuni_io_hand_pos < 6) {
|
// Use emulated AIR
|
||||||
chuni_io_hand_pos++;
|
if (GetAsyncKeyState(chuni_io_cfg.vk_ir_emu)) {
|
||||||
|
if (chuni_io_hand_pos < 6) {
|
||||||
|
chuni_io_hand_pos++;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (chuni_io_hand_pos > 0) {
|
||||||
|
chuni_io_hand_pos--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0 ; i < 6 ; i++) {
|
||||||
|
if (chuni_io_hand_pos > i) {
|
||||||
|
*beams |= (1 << i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (chuni_io_hand_pos > 0) {
|
// Use actual AIR
|
||||||
chuni_io_hand_pos--;
|
for (i = 0; i < 6; i++) {
|
||||||
}
|
if(GetAsyncKeyState(chuni_io_cfg.vk_ir[i]) & 0x8000) {
|
||||||
}
|
*beams |= (1 << i);
|
||||||
|
} else {
|
||||||
for (i = 0 ; i < 6 ; i++) {
|
*beams &= ~(1 << i);
|
||||||
if (chuni_io_hand_pos > i) {
|
}
|
||||||
*beams |= (1 << i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
14
chuniio_brokenithm/meson.build
Normal file
14
chuniio_brokenithm/meson.build
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
shared_library(
|
||||||
|
'brokenithm',
|
||||||
|
name_prefix : '',
|
||||||
|
vs_module_defs : 'chuniio.def',
|
||||||
|
include_directories : inc,
|
||||||
|
implicit_include_directories : false,
|
||||||
|
link_with : [
|
||||||
|
chuniio_lib,
|
||||||
|
],
|
||||||
|
|
||||||
|
sources : [
|
||||||
|
'chuniio.c',
|
||||||
|
],
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user