SmoothCursor

Posted on  by 



Dismiss Join GitHub today. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

SmoothCursor
  1. You may not immediately think 'gaming' when you think 'Mac,' but there are tons of games for the Mac these days, and some of the most popular PC games are also available for OS X.
  2. Smooth Cursor allows you to control the acceleration for both a mouse and a trackpad separately. So, if you like the feature on one of your inputs, you can use it and customise it while disabling.
Nov 26th, 2014
Never

Smoothcursor Cydia

Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
Cursor
  1. ╔════╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═════╗
  2. ║ ╔══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╩═══╗ ║
  3. ╠─╣ by RPG Maker Source. ╠─╣
  4. ║ ╚══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╦═══╝ ║
  5. ╠════╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═╤═╩═════╣
  6. ║ ┌────┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴─────┐ ║
  7. ║ └────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┘ ║
  8. ╠══════╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══════╣
  9. ║ This work is protected by the following license: ║
  10. ║ ╔══════════════════════════════════════════════════════════════════╗ ║
  11. ║ │ Copyright © 2014 Maker Systems. │ ║
  12. ║ │ This software is provided 'as-is', without any kind of │ ║
  13. ║ │ warranty. Under no circumstances will the author be held │ ║
  14. ║ │ liable for any damages arising from the use of this software. │ ║
  15. ║ │ Permission is granted to anyone to use this software on their │ ║
  16. ║ │ free or commercial games made with a legal copy of RPG Maker │ ║
  17. ║ │ VX Ace, as long as Maker Systems - RPG Maker Source is │ ║
  18. ║ │ │ ║
  19. ║ │ Selling this code or any portions of it 'as-is' or as part of │ ║
  20. ║ │ │ ║
  21. ║ │ The original header, which includes this copyright notice, │ ║
  22. ║ │ must not be edited or removed from any verbatim copy of the │ ║
  23. ║ │ │ ║
  24. ║ ╚══════════════════════════════════════════════════════════════════╝ ║
  25. ║ ║
  26. ╠══════════════════════════════════════════════════════════════════════════════╣
  27. ╠══════════════════════════════════════════════════════════════════════════════╣
  28. ║ • Version 1.0.0, 24/11/14 - (DD/MM/YY). ║
  29. ║ • Version 1.0.1, 30/11/14 - (DD/MM/YY). ║
  30. ║ • Version 1.0.2, 17/12/14 - (DD/MM/YY). ║
  31. ║ • Version 1.0.3, 30/03/15 - (DD/MM/YY). ║
  32. ║ • Version 1.0.4, 24/05/15 - (DD/MM/YY). ║
  33. ╠══════════════════════════════════════════════════════════════════════════════╣
  34. ╠══════════════════════════════════════════════════════════════════════════════╣
  35. ╠══════════════════════════════════════════════════════════════════════════════╣
  36. ║ ┌──────────────────────────────────────────────────────────────────────────┐ ║
  37. ║ └┬┬┬┬──────────────────────────────────────────────────────────────────┬┬┬┬┘ ║
  38. ║ Hello there! This script is 'plug and play', you can simply insert it into ║
  39. ║ ║
  40. ║ This script embellishes your GUIs by changing the way the default Window ║
  41. ║ cursor works in RPG Maker VX Ace. The cursor will smoothly move to its new ║
  42. ║ position when selecting items and will also smoothly change its size when ║
  43. ║ ║
  44. ║ The scrolling of the window contents will also be smooth. ║
  45. ║ We hope you enjoy it. ║
  46. ║ Thanks for choosing our products. ║
  47. ║ ┌──────────────────────────────────────────────────────────────────────────┐ ║
  48. ║ └┬┬┬┬──────────────────────────────────────────────────────────────────┬┬┬┬┘ ║
  49. ║ 'How do I change the speed of the cursor movement?' ║
  50. ║ Right click anywhere in the script editor and select 'Find' (or CTRL + F) ║
  51. ║ search for 'DELAY_LEVEL' (without quotation marks). ║
  52. ║ You will see something like 'DELAY_LEVEL = 4' ║
  53. ║ Set the number after the equality sign to any numer you like, bigger or ║
  54. ║ equal than 1. The bigger the number, the stronger the deceleration effect ║
  55. ║ and thus the slower the cursor speed when changing selections (or ║
  56. ║ dimensions). Small numbers result in a faster deceleration, default value ║
  57. ║ ║
  58. ╠══════════════════════════════════════════════════════════════════════════════╣
  59. ╠══════════════════════════════════════════════════════════════════════════════╣
  60. ╠══════════════════════════════════════════════════════════════════════════════╣
  61. ║ Have fun and enjoy! ║
  62. ╠══════════════════════════════════════════════════════════════════════════════╣
  63. ╠══════════════════════════════════════════════════════════════════════════════╣
  64. ╠══════════════════════════════════════════════════════════════════════════════╣
  65. ║ Keep in touch with us and be the first to know about new releases: ║
  66. ║ www.rpgmakersource.com ║
  67. ║ www.twitter.com/RPGMakerSource ║
  68. ║ ║
  69. ║ Get involved! Have an idea for a system? Let us know. ║
  70. ║ Spread the word and help us reach more people so we can continue creating ║
  71. ║ ║
  72. ╚══════════════════════════════════════════════════════════════════════════════╝)
  73. #
  74. #------------------------------------------------------------------------------
  75. #
  76. module MakerSystems
  77. #
  78. #----------------------------------------------------------------------------
  79. #
  80. module SmoothCursor
  81. #------------------------------------------------------------------------
  82. #------------------------------------------------------------------------
  83. #
  84. #------------------------------------------------------------------------------
  85. # Alias to Update. Update Cursor Replaced. Added method to handle the effect.
  86. #
  87. class Window_Selectable < Window_Base
  88. #--------------------------------------------------------------------------
  89. #--------------------------------------------------------------------------
  90. alias_method(:ms_smooth_cursor_original_update, :update)
  91. #--------------------------------------------------------------------------
  92. #--------------------------------------------------------------------------
  93. # Original method.
  94. # Stop unless cursor update is needed.
  95. return unless @ms_smooth_cursor_target && self.index >= 0 && !disposed?
  96. ms_smooth_cursor_update
  97. #--------------------------------------------------------------------------
  98. #--------------------------------------------------------------------------
  99. # Current Rect.
  100. # Get the target Rect.
  101. # Get the target Offset Y.
  102. # Shortcut to desired delay.
  103. delay = MakerSystems::SmoothCursor::DELAY_LEVEL.to_f
  104. step = ((target.x - now.x).to_f / delay)
  105. now.x += target.x > now.x ? step.ceil : step.floor
  106. step = ((target.y - now.y).to_f / delay)
  107. now.y += target.y > now.y ? step.ceil : step.floor
  108. step = ((target.width - now.width).to_f / delay)
  109. now.width += target.width > now.width ? step.ceil : step.floor
  110. step = ((target.height - now.height).to_f / delay)
  111. now.height += target.height > now.height ? step.ceil : step.floor
  112. if self.respond_to?(:visible_line_number) && visible_line_number 1
  113. # Calculates and applies step value for Offset Y.
  114. self.ox += target_oy > self.ox ? step.ceil : step.floor
  115. # If targets reached, stop ms_smooth_cursor_update.
  116. if cursor_rect target && self.ox target_oy
  117. end
  118. # Calculates and applies step value for Offset Y.
  119. self.oy += target_oy > self.oy ? step.ceil : step.floor
  120. # If targets reached, stop ms_smooth_cursor_update.
  121. if cursor_rect target && self.oy target_oy
  122. end
  123. end
  124. #--------------------------------------------------------------------------
  125. #--------------------------------------------------------------------------
  126. col = 0 if col < 0
  127. @ms_smooth_cursor_target_ox = col * (item_width + spacing)
  128. #--------------------------------------------------------------------------
  129. #--------------------------------------------------------------------------
  130. def ms_smooth_cursor_hrzcommand_bottom_col=(col)
  131. self.ms_smooth_cursor_hrzcommand_top_col = col - (col_max - 1)
  132. #--------------------------------------------------------------------------
  133. #--------------------------------------------------------------------------
  134. def ms_smooth_cursor_hrzcommand_ensure_cursor_visible
  135. self.ms_smooth_cursor_hrzcommand_top_col = index if index < top_col
  136. self.ms_smooth_cursor_hrzcommand_bottom_col = index if index > bottom_col
  137. #--------------------------------------------------------------------------
  138. #--------------------------------------------------------------------------
  139. if @cursor_all
  140. cursor_rect.set(0, 0, contents.width, row_max * item_height)
  141. elsif @index < 0
  142. else
  143. if self.respond_to?(:visible_line_number) && visible_line_number 1 &&
  144. # Special case for HorzCommand window or any horizontally extended one.
  145. ms_smooth_cursor_hrzcommand_ensure_cursor_visible
  146. ms_target_oy = @ms_smooth_cursor_target_ox
  147. else
  148. # Manages Offset Y as in ensure_cursor_visible but instead of using
  149. # top_row to set the value, passes it to ms_smooth_cursor_update.
  150. if row < top_row || row > bottom_row
  151. msrow = msrow - (page_row_max - 1) if row > bottom_row
  152. msrow = row_max - 1 if msrow > row_max - 1
  153. end
  154. # New targets.
  155. @ms_smooth_cursor_target = [item_rect(@index), ms_target_oy]
  156. end
  157. end
RAW Paste Data
MacUpdate

Smooth Cursor Download

MacUpdate.com uses cookies. Some of these cookies are essential, while others improve your experience by providing insights into how MacUpdate is being used. If you’re looking for more info on our cookie usage, explore our Privacy Policy or the privacy settings in your .

MacUpdate.com uses cookies.

Some of these cookies are essential, while others improve your experience by providing insights into how MacUpdate is being used. If you’re looking for more info on our cookie usage and you like a dry read, explore our Privacy Policy.

SmoothCursor

Necessary Cookies

Necessary cookies enable the core functionality of MacUpdate.com. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences.

Analytical Cookies

Analytical cookies help us improve our website by collecting and reporting information on its usage.

Google Analytics

Smoothcursor Tweak Ios 12

Hotjar

Smooth Cursor Windows 10

Smooth cursor download

Advertising Cookies

Advertising cookies are used to create a personalized browsing experience for you.

Smooth Cursor Set

Google AdSense (not personal data)

Smooth Cursor Trail Osu

Google Publisher Tags (not personal data)

DoubleClick Ad Exchange-Buyer





Coments are closed