Method for operating keyboard in standard C and LUA combined programming

A standard keyboard and standard technology, applied in the field of keyboard operation in the joint programming of standard C and LUA, can solve the problem of inability to operate the keyboard together, and achieve the effect of promoting the use value and avoiding misoperation.

Inactive Publication Date: 2011-09-14
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide a method for keyboard operation in a standard C and LUA joint p...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for operating keyboard in standard C and LUA combined programming
  • Method for operating keyboard in standard C and LUA combined programming
  • Method for operating keyboard in standard C and LUA combined programming

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0015] The method for keyboard operation in a kind of standard C and LUA joint programming of the present invention, its structure comprises keyboard, and operating system is Linux operating system, and keyboard is provided with two kinds of keyboard drivers under Linux operating system, and a kind of is standard keyboard driver, One is a non-standard keyboard driver; standard C programs and LUA programs are run under the Linux operating system. The uploaded key value can be read without any action; when the LUA program is transferred to the standard C program, the standard keyboard driver will only handle the key operations that occur during the running of the standard C program, and the standard C program will not That is, the keystrokes during the running of the LUA program will not affect the standard keyboard driver.

[0016] In the program, the standard C program needs to receive the key value uploaded by the standard keyboard driver to perform corresponding actions, and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for operating a keyboard in standard C and LUA combined programming, and belongs to the technology of a keyboard operating field. In a Linux operating system, a keyboard is provided with two keyboard drivers, wherein one is a standard keyboard driver and the other is a non-standard keyboard driver; in the operating process of a standard C program, not only a key value uploaded by the standard keyboard driver is read to perform a corresponding operation, but also the key value uploaded by the non-standard keyboard driver is read, and no operation action is performed after reading; when an LUA program is converted to the standard C program, the standard keyboard driver can only process a keying operation in the operating process of the standard C program; and the standard keyboard driver is not influenced by the keying before operating the standard C program, namely in the operating process of the LUA program. Compared with the prior art, the method for operating the keyboard in the standard C and LUA combined programming, an error operation of the keying in the situation of combined programming of the standard C program and the LUA program is avoided.

Description

technical field [0001] The invention relates to a keyboard operation field technology under a Linux operating system, in particular to a keyboard operation method in standard C and LUA joint programming. Background technique [0002] C language is currently the most popular and widely used process-oriented high-level programming language in the world. The C language is obviously superior to other high-level languages ​​for operating systems and system use programs and hardware operations. Many large-scale application software are written in C language. [0003] LUA is a small scripting language. The language is designed to be embedded in applications, providing flexible extensions and customizations for applications. LUA scripts can be easily called by C / C++ code, and can also call C / C++ functions in turn, which makes LUA widely used in applications. Not only as an extended script, but also as a common configuration file, replacing XML, Ini and other file formats, and it ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 李伟梁华勇于治楼
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products