Merge 1.x into master #1

Merged
sikofitt merged 14 commits from 1.x into master 2022-05-17 10:29:27 -07:00
2 changed files with 2 additions and 26 deletions
Showing only changes of commit 2ed1abf0fc - Show all commits

View File

@ -31,12 +31,3 @@ if (!function_exists('ungetch')) {
return $g->ungetch($char); return $g->ungetch($char);
} }
} }
if (!function_exists('ungetchString')) {
function ungetchString(string $string, string $linuxLibrary = null): bool
{
$g = new Getch($linuxLibrary);
return $g->ungetchString($string);
}
}

View File

@ -98,21 +98,6 @@ final class Getch
} }
return $ffi->cinPeek(); 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 public function getch(): int
{ {