Difference between revisions of "CTNTVirtualPad:setScale"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD components scale. <source lang="lua"> CTNTVirtualPad:s...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the VPAD components scale.
 
Sets the VPAD components scale.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
CTNTVirtualPad:setScale(padComponent, scale)
 
CTNTVirtualPad:setScale(padComponent, scale)
</source>
+
</syntaxhighlight>
  
  

Latest revision as of 14:27, 13 July 2023

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the VPAD components scale.

CTNTVirtualPad:setScale(padComponent, scale)


padComponent possible values:

  • PAD.COMPO_LEFTPAD
  • PAD.COMPO_RIGHTPAD
  • PAD.COMPO_BUTTON1
  • PAD.COMPO_BUTTON2
  • PAD.COMPO_BUTTON3
  • PAD.COMPO_BUTTON4
  • PAD.COMPO_BUTTON5
  • PAD.COMPO_BUTTON6

Parameters

padComponent: (number) the pad component to scale
scale: (number) scale factor