Difference between revisions of "LCD AddIntToBuffer"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(Created)
 
imported>Speedo
m
 
Line 8: Line 8:
==Example==
==Example==
The following use of the function:
The following use of the function:
  LCD_AddIntBuffer 2 4 1
  LCD_AddIntToBuffer 2 4 1
Would print "0002".
Would print "0002".


[[Category: Logitech G15 LCD]]
[[Category: Logitech G15 LCD]]

Latest revision as of 18:33, 29 March 2008

A command for Logitech G15 LCD

Syntax:

LCD_AddIntToBuffer Value:long FieldSize:long ZeroPad:bool

Adds an integer to the text buffer. FieldSize determines the size, in characters, of the field that will be shown. If ZeroPad is 1, the value will be padded with leading zeros if it contains less characters than FieldSize.

Example[edit | edit source]

The following use of the function:

LCD_AddIntToBuffer 2 4 1

Would print "0002".