Commit Graph

54485 Commits

Author SHA1 Message Date
nickysn
3101c29dba + added a keyboard BIOS dump tool
git-svn-id: branches/unicodekvm@40235 -
2018-11-06 02:15:03 +00:00
nickysn
ba4d10ade0 + initial implementation of a windows key event to TEnhancedKeyEvent conversion function
git-svn-id: branches/unicodekvm@40234 -
2018-11-05 18:23:31 +00:00
nickysn
58d899bf75 - removed redundant setting of result in TranslateKey
git-svn-id: branches/unicodekvm@40233 -
2018-11-05 17:54:08 +00:00
nickysn
28235033d7 * switch to using ReadConsoleInputW instead of ReadConsoleInputA in the windows
keyboard unit. This way the console input is read using Unicode and is later
  translated to the OEM character set via WideCharToMultiByte. This is will
  allow returning Unicode character codes once enhanced key events are
  implemented.

git-svn-id: branches/unicodekvm@40232 -
2018-11-05 16:35:56 +00:00
nickysn
d38e97c661 + added a keyboard dump using the Bulgarian Phonetic Traditional keyboard layout and code page 866
git-svn-id: branches/unicodekvm@40231 -
2018-11-05 15:45:00 +00:00
nickysn
aefe3d8c55 + added kbd dump file with num lock on
git-svn-id: branches/unicodekvm@40230 -
2018-11-05 15:21:02 +00:00
nickysn
91766375c7 + added keyboard dumps, obtained with FPC 3.0.4 under Windows, using the US keyboard locale
git-svn-id: branches/unicodekvm@40229 -
2018-11-05 15:07:55 +00:00
nickysn
12e66de0a6 + added an interactive keyboard test
git-svn-id: branches/unicodekvm@40228 -
2018-11-05 15:04:36 +00:00
nickysn
f964dacd24 * moved some drawing routines to a new unit 'vidutil'
git-svn-id: branches/unicodekvm@40222 -
2018-11-05 14:17:27 +00:00
nickysn
a7e13587a0 + added a keyboard dump test tool
git-svn-id: branches/unicodekvm@40154 -
2018-11-01 17:46:05 +00:00
nickysn
e7ea79d71d * show all details about the key event, without using KeyEventToString (because it
sometimes outputs control (<#32) ASCII characters)

git-svn-id: branches/unicodekvm@40095 -
2018-10-30 02:05:23 +00:00
nickysn
c10c9607f1 + also invoke TranslateKey to get more data (either Ascii or virtual key translation)
when converting a TKeyEvent to TExtendedKeyEvent
+ also fill UnicodeChar from AsciiChar if AsciiChar is in the standard Ascii range
  (#0..#127)

git-svn-id: branches/unicodekvm@40094 -
2018-10-30 01:52:51 +00:00
nickysn
c5e35e8d11 * write physical key numbers both in decimal and hex
git-svn-id: branches/unicodekvm@40093 -
2018-10-29 21:03:28 +00:00
nickysn
eb30bfa9f0 * print ASCII characters better
git-svn-id: branches/unicodekvm@40092 -
2018-10-29 20:51:49 +00:00
nickysn
bd1de8c3f5 * Synchronize with trunk
git-svn-id: branches/unicodekvm@40090 -
2018-10-29 18:45:19 +00:00
nickysn
59aeb82603 + slight fixes and improvements to the test
git-svn-id: branches/unicodekvm@40089 -
2018-10-29 18:00:17 +00:00
nickysn
82b2e8a080 + added an interactive keyboard unit test
git-svn-id: branches/unicodekvm@40088 -
2018-10-29 17:43:25 +00:00
nickysn
aa7bddc621 + added tests directory
git-svn-id: branches/unicodekvm@40087 -
2018-10-29 17:34:51 +00:00
nickysn
b6f0fa055f + added functions GetEnhancedKeyEvent and PollEnhancedKeyEvent and implemented
default fallbacks, which revert to calling GetKeyEvent and PollKeyEvent for
  drivers that don't support the enhanced functions

git-svn-id: branches/unicodekvm@40086 -
2018-10-29 17:33:57 +00:00
Mattias Gaertner
41bf6106c5 pastojs: clean up
git-svn-id: trunk@40085 -
2018-10-29 17:23:58 +00:00
Mattias Gaertner
e539a385e4 pastojs: fixed empty except on statement
git-svn-id: trunk@40084 -
2018-10-29 17:23:42 +00:00
Mattias Gaertner
8554623084 pastojs: untypedpointer:=typedpointer
git-svn-id: trunk@40083 -
2018-10-29 17:11:25 +00:00
Mattias Gaertner
cef507c665 fcl-passrc: untypedpointer:=typedpointer
git-svn-id: trunk@40082 -
2018-10-29 17:11:06 +00:00
Mattias Gaertner
ddc79efdd4 pastojs: implemented pred(char), succ(char)
git-svn-id: trunk@40081 -
2018-10-29 16:41:54 +00:00
Mattias Gaertner
3b6436ffe1 fcl-js: jswriter: write #$ff00..#$ffff as \u
git-svn-id: trunk@40080 -
2018-10-29 16:41:22 +00:00
nickysn
685d090bf2 + added GetEnhancedKeyEvent and PollEnhancedKeyEvent to TKeyboardDriver
git-svn-id: branches/unicodekvm@40079 -
2018-10-29 16:14:01 +00:00
nickysn
cee3065f93 + introduced the TEnhancedKeyEvent record
git-svn-id: branches/unicodekvm@40078 -
2018-10-29 16:00:19 +00:00
Mattias Gaertner
a71dc667ce fcl-js: clean up
git-svn-id: trunk@40077 -
2018-10-29 16:00:01 +00:00
Mattias Gaertner
b5d1f1026f pasotjs: fixed parsing cfg
git-svn-id: trunk@40076 -
2018-10-29 15:46:50 +00:00
Mattias Gaertner
60eb591844 pastojs: fixed compilation
git-svn-id: trunk@40075 -
2018-10-29 10:16:58 +00:00
Mattias Gaertner
ee8215e2ed pastojs: adapted pas2jscompiler for pas2js
git-svn-id: trunk@40072 -
2018-10-28 18:30:48 +00:00
nickysn
6a612f9003 + created branch for keyboard/video/mouse unit unicode support development
git-svn-id: branches/unicodekvm@40069 -
2018-10-28 17:26:54 +00:00
florian
18a45d94a3 * version update
git-svn-id: trunk@40068 -
2018-10-28 16:21:06 +00:00
Mattias Gaertner
f6b2b6d4e8 pastojs: clean up
git-svn-id: trunk@40067 -
2018-10-28 14:52:39 +00:00
Mattias Gaertner
01d1cde8a3 pastojs: adaptions for pas2js
git-svn-id: trunk@40064 -
2018-10-28 14:34:08 +00:00
michael
4bf4ce5537 * Use sqlite_open_v2 to connect, Bug ID #34278
git-svn-id: trunk@40063 -
2018-10-28 14:27:16 +00:00
Mattias Gaertner
d915932c29 pastojs: $i %date%, %time%, %line%
git-svn-id: trunk@40062 -
2018-10-28 14:08:41 +00:00
Mattias Gaertner
b6083f84a1 fcl-passrc: fixed handling $i %name%
git-svn-id: trunk@40061 -
2018-10-28 14:00:51 +00:00
michael
3b1622f10a * Add GetTypeKind
git-svn-id: trunk@40060 -
2018-10-28 10:47:57 +00:00
yury
bf4eda478d * SetExecutionWeight(): Set execution weight also for nodes with special handling. Minor code cleanup/improvements.
* Restore previous execution weight before exiting secondpass().
* It all improves register allocation for variables inside loops in some cases.

git-svn-id: trunk@40059 -
2018-10-27 18:13:33 +00:00
michael
8e0442fb1f * Fix 4-byte unicode characters
git-svn-id: trunk@40058 -
2018-10-27 17:16:13 +00:00
michael
645a528584 * Fix some warnings
git-svn-id: trunk@40057 -
2018-10-27 15:08:11 +00:00
michael
5240095a3e * Introduce overloaded version of ReplaceRegexpr which allows to set more options (see bug ID #34429).
git-svn-id: trunk@40056 -
2018-10-27 15:08:00 +00:00
michael
35d4a6449a * Fix bug ID #34451, introduce foSkipWhiteSpaceOnlyLeading
git-svn-id: trunk@40055 -
2018-10-27 14:47:45 +00:00
michael
68f74289e1 * Fix bug #34463, CMAP with 1 entry is ignored. Patch by Petr Kristan.
git-svn-id: trunk@40054 -
2018-10-27 14:36:57 +00:00
Mattias Gaertner
c8bc9202f7 pastojs: adapted pas2jsfilecache for pas2js
git-svn-id: trunk@40053 -
2018-10-27 14:15:53 +00:00
Mattias Gaertner
5a88c840d8 pastojs: allow calling Free inside method
git-svn-id: trunk@40051 -
2018-10-27 11:58:41 +00:00
yury
2b459b30d2 * Optimized generic implementations of tcg.a_op_const_ref() and tcg.a_op_reg_ref() for PIC and CPUs which need 2 or more instructions to load a symbol's value by reference.
First the symbol's address is taken and then it is used to load the value and also store the result. It eliminates extra calculation of the symbol's address needed to store the result.
  x86 and other CPUs which can handle refs ops directly or more efficiently already have overloaded versions of these methods and are not affected by this change.

git-svn-id: trunk@40050 -
2018-10-27 11:32:22 +00:00
Mattias Gaertner
a2c16728cc pastojs: adaptions for pas2js
git-svn-id: trunk@40049 -
2018-10-27 11:17:58 +00:00
Mattias Gaertner
43c2dce24f fcl-js: jssrcmap adapted for pas2js
git-svn-id: trunk@40048 -
2018-10-26 09:10:56 +00:00