removed function ungetchString
This commit is contained in:
parent
aa72be226d
commit
2ed1abf0fc
|
@ -31,12 +31,3 @@ if (!function_exists('ungetch')) {
|
|||
return $g->ungetch($char);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ungetchString')) {
|
||||
function ungetchString(string $string, string $linuxLibrary = null): bool
|
||||
{
|
||||
$g = new Getch($linuxLibrary);
|
||||
|
||||
return $g->ungetchString($string);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,21 +98,6 @@ final class Getch
|
|||
}
|
||||
return $ffi->cinPeek();
|
||||
}
|
||||
/* public function keyCode(string $device): array
|
||||
{
|
||||
|
||||
$arrayType = \FFI::arrayType(self::$ffi->type('int'), [3]);
|
||||
$res = \FFI::new($arrayType);
|
||||
|
||||
$arrayType = self::$ffi->keyCode($device);
|
||||
|
||||
return [
|
||||
'type' => $arrayType[0],
|
||||
'code' => $arrayType[1],
|
||||
'value' => $arrayType[2],
|
||||
'keyCode' => $arrayType[3],
|
||||
];
|
||||
}*/
|
||||
|
||||
public function getch(): int
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue